Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Update Protractor to 4.0.0 and use FF 47 in e2e tests on Travis #14912

Merged
merged 2 commits into from
Jul 22, 2016

Conversation

Narretz
Copy link
Contributor

@Narretz Narretz commented Jul 15, 2016

No description provided.

@Narretz Narretz added this to the 1.5.x milestone Jul 15, 2016
@Narretz Narretz force-pushed the chore-e2e-firefox branch 4 times, most recently from f4d4287 to c48225e Compare July 20, 2016 22:26
@Narretz Narretz changed the title Chore e2e firefox Update Protractor to 4.0.0 and use FF 47 in e2e tests on Travis Jul 21, 2016
@gkalpak
Copy link
Member

gkalpak commented Jul 21, 2016

According to the changelog, we should not be using getInnerHtml() with v4.x. There seem to be a couple of places where we still use them (e.g. here and there).
They still seem to work, but if it is easy to get rid of them, I would go for it (not necessary though).

Can you also make sure that this doesn't break with 482a3ae (which involves quite a bit of scrolling)?
Other than that LGTM 👍

@Narretz
Copy link
Contributor Author

Narretz commented Jul 21, 2016

@gkalpak You don't know by any chance what the migration for getInnerHTML ist? Simply accessing the property?

@gkalpak
Copy link
Member

gkalpak commented Jul 21, 2016

From what I understand element(...).getAttribute('innerHTML') might work (since it will return the value of the property, if no attribute is found.
If not, I am afraid you have to use browser.executeScript().

@Narretz Narretz force-pushed the chore-e2e-firefox branch 3 times, most recently from 30a933c to 4e5b230 Compare July 22, 2016 14:38
Narretz added 2 commits July 22, 2016 21:28
4.0.0 is the first version with Selenium 2.53.x, and we need that as lower versions have problems
with current Firefox versions.
See SeleniumHQ/selenium#1202 and SeleniumHQ/selenium#2110.

We are currently running tests on FF28.

As part of the update the deprecated webdriver fn getInnerHtml has been replaced with getAttribute('innerHTML')
This commit also adds a new capability to the protractor configs that
ensures that all angularjs.org tests run correctly on Firefox. See
SeleniumHQ/selenium#1202
@Narretz Narretz force-pushed the chore-e2e-firefox branch from 4e5b230 to 1d4216a Compare July 22, 2016 19:29
@Narretz Narretz merged commit 1d4216a into angular:master Jul 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants