Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1LP][RFR] Firefox 60+ fix #112

Merged
merged 2 commits into from Sep 27, 2018
Merged

[1LP][RFR] Firefox 60+ fix #112

merged 2 commits into from Sep 27, 2018

Conversation

izapolsk
Copy link
Contributor

We have two nav issues in Firefox 60+ and CloudForms 5.10.

  1. first issue is that Widgetastic doesn't check whether page is safe when it receives WebElement.
    As a result, it tries to access element when page isn't ready yet.
    I'm going to remove that check. The other way is to add force_check_safe in all places where it is necessary.
  2. second issue is StaleReferenceElement exception. Some controls in CFME 5.10 are dynamically updated by JS. there is no clear way to check that all JS are done. So, only obvious workaround is to try to access element once more when such exception happens.

this Pr intends to fix both issues.

@@ -811,14 +816,12 @@ def __eq__(self, other):
return self._o == other._o and self._browser == other._browser

def elements(
self, locator, parent=None, check_visibility=False, check_safe=True,
force_check_safe=False):
self, locator, parent=None, check_visibility=False, check_safe=True):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not seeing any direct use of this kwarg in wt.patternfly or integration_tests so I think its clean to remove.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I checked this before removal.

@izapolsk izapolsk changed the title [RFR] Firefox 60+ fix [WIPTEST] Firefox 60+ fix Aug 22, 2018
@izapolsk
Copy link
Contributor Author

I caught two more issues to sort out.

Copy link
Collaborator

@mshriver mshriver left a comment

Choose a reason for hiding this comment

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

I like it

@izapolsk izapolsk changed the title [WIPTEST] Firefox 60+ fix [RFR] Firefox 60+ fix Aug 23, 2018
@izapolsk
Copy link
Contributor Author

izapolsk commented Aug 23, 2018

all these changes passed local testing against most troublesome tests like ansible automation and etc using FF61.0.2 + geckodriver 0.20.1 + selenium 3.12.

@mshriver
Copy link
Collaborator

Two travis test failures, please investigate

@izapolsk
Copy link
Contributor Author

those two tests expect to get reply too quickly. retry option adds some delay

from cached_property import cached_property
from functools import wraps
Copy link
Collaborator

Choose a reason for hiding this comment

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

REQUIRED use six.wraps to get the correct metadata setup on python2

@RonnyPfannschmidt RonnyPfannschmidt changed the title [RFR] Firefox 60+ fix [1LP][WIP] Firefox 60+ fix Aug 30, 2018
@izapolsk izapolsk changed the title [1LP][WIP] Firefox 60+ fix [1LP][RFR] Firefox 60+ fix Aug 30, 2018
def elements(
self, locator, parent=None, check_visibility=False, check_safe=True,
force_check_safe=False):
self, locator, parent=None, check_visibility=False, check_safe=True):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

REQUIRED: restore option and add deprecation warning

.travis.yml Show resolved Hide resolved
@mshriver mshriver merged commit 0ca1713 into RedHatQE:master Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants