Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

refactor(browser): Remove wrapDriver #3827

Merged
merged 1 commit into from
Dec 16, 2016
Merged

Conversation

heathkit
Copy link
Contributor

No description provided.

@juliemr
Copy link
Member

juliemr commented Dec 15, 2016

Please make sure the commit message lists the breaking change

@heathkit heathkit requested review from juliemr and removed request for sjelin December 15, 2016 18:51
This is a **breaking change**.

Before:
Users could create their own selenium driver instance and enable Protractor on
it like so:
```js
let capabilities = webdriver.Capabilities.chrome();
let driver = new webdriver.Builder().usingServer(seleniumAddress)
    .withCapabilities(capabilities).build();
let browser = protractor.wrapDriver(driver);
```

Over the years, wrapDriver() has become increasingly broken as Protractor
needs extra configuration options that wrapDriver() doesn't set.

After:
This method is removed. If users need a new browser instance, they can
use `browser.forkNewDriverInstance()`.
@heathkit heathkit merged commit 75276d1 into angular:beta Dec 16, 2016
Copy link
Member

@juliemr juliemr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

heathkit added a commit to heathkit/protractor that referenced this pull request Dec 19, 2016
…angular#3827)

Before:
Users could create their own selenium driver instance and enable Protractor on
it like so:
```js
let capabilities = webdriver.Capabilities.chrome();
let driver = new webdriver.Builder().usingServer(seleniumAddress)
    .withCapabilities(capabilities).build();
let browser = protractor.wrapDriver(driver);
```

Over the years, wrapDriver() has become increasingly broken as Protractor
needs extra configuration options that wrapDriver() doesn't set.

After:
This method is removed. If users need a new browser instance, they can
use `browser.forkNewDriverInstance()`.
juliemr pushed a commit that referenced this pull request Dec 19, 2016
…#3827)

Before:
Users could create their own selenium driver instance and enable Protractor on
it like so:
```js
let capabilities = webdriver.Capabilities.chrome();
let driver = new webdriver.Builder().usingServer(seleniumAddress)
    .withCapabilities(capabilities).build();
let browser = protractor.wrapDriver(driver);
```

Over the years, wrapDriver() has become increasingly broken as Protractor
needs extra configuration options that wrapDriver() doesn't set.

After:
This method is removed. If users need a new browser instance, they can
use `browser.forkNewDriverInstance()`.
juliemr pushed a commit that referenced this pull request Dec 20, 2016
…#3827)

Before:
Users could create their own selenium driver instance and enable Protractor on
it like so:
```js
let capabilities = webdriver.Capabilities.chrome();
let driver = new webdriver.Builder().usingServer(seleniumAddress)
    .withCapabilities(capabilities).build();
let browser = protractor.wrapDriver(driver);
```

Over the years, wrapDriver() has become increasingly broken as Protractor
needs extra configuration options that wrapDriver() doesn't set.

After:
This method is removed. If users need a new browser instance, they can
use `browser.forkNewDriverInstance()`.
juliemr pushed a commit that referenced this pull request Dec 21, 2016
…#3827)

Before:
Users could create their own selenium driver instance and enable Protractor on
it like so:
```js
let capabilities = webdriver.Capabilities.chrome();
let driver = new webdriver.Builder().usingServer(seleniumAddress)
    .withCapabilities(capabilities).build();
let browser = protractor.wrapDriver(driver);
```

Over the years, wrapDriver() has become increasingly broken as Protractor
needs extra configuration options that wrapDriver() doesn't set.

After:
This method is removed. If users need a new browser instance, they can
use `browser.forkNewDriverInstance()`.
juliemr pushed a commit that referenced this pull request Dec 22, 2016
…#3827)

Before:
Users could create their own selenium driver instance and enable Protractor on
it like so:
```js
let capabilities = webdriver.Capabilities.chrome();
let driver = new webdriver.Builder().usingServer(seleniumAddress)
    .withCapabilities(capabilities).build();
let browser = protractor.wrapDriver(driver);
```

Over the years, wrapDriver() has become increasingly broken as Protractor
needs extra configuration options that wrapDriver() doesn't set.

After:
This method is removed. If users need a new browser instance, they can
use `browser.forkNewDriverInstance()`.
juliemr pushed a commit that referenced this pull request Dec 28, 2016
…#3827)

Before:
Users could create their own selenium driver instance and enable Protractor on
it like so:
```js
let capabilities = webdriver.Capabilities.chrome();
let driver = new webdriver.Builder().usingServer(seleniumAddress)
    .withCapabilities(capabilities).build();
let browser = protractor.wrapDriver(driver);
```

Over the years, wrapDriver() has become increasingly broken as Protractor
needs extra configuration options that wrapDriver() doesn't set.

After:
This method is removed. If users need a new browser instance, they can
use `browser.forkNewDriverInstance()`.
sjelin pushed a commit that referenced this pull request Dec 28, 2016
…#3827)

Before:
Users could create their own selenium driver instance and enable Protractor on
it like so:
```js
let capabilities = webdriver.Capabilities.chrome();
let driver = new webdriver.Builder().usingServer(seleniumAddress)
    .withCapabilities(capabilities).build();
let browser = protractor.wrapDriver(driver);
```

Over the years, wrapDriver() has become increasingly broken as Protractor
needs extra configuration options that wrapDriver() doesn't set.

After:
This method is removed. If users need a new browser instance, they can
use `browser.forkNewDriverInstance()`.
juliemr pushed a commit that referenced this pull request Dec 29, 2016
…#3827)

Before:
Users could create their own selenium driver instance and enable Protractor on
it like so:
```js
let capabilities = webdriver.Capabilities.chrome();
let driver = new webdriver.Builder().usingServer(seleniumAddress)
    .withCapabilities(capabilities).build();
let browser = protractor.wrapDriver(driver);
```

Over the years, wrapDriver() has become increasingly broken as Protractor
needs extra configuration options that wrapDriver() doesn't set.

After:
This method is removed. If users need a new browser instance, they can
use `browser.forkNewDriverInstance()`.
@heathkit heathkit deleted the no-wrapdriver branch January 4, 2017 01:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants