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

Sometimes a wait of 0.002 seconds will make the next click go faster #60

Closed
dougnoel opened this issue Feb 27, 2020 · 3 comments
Closed
Labels
bug Something isn't working
Milestone

Comments

@dougnoel
Copy link
Owner

Adding in a step of "And I wait 0.002 seconds" will make elements that couldn't be found on pop up divs suddenly found immediately. Not sure why this is, but I've found that taking the it down to a millisecond also works. Solution is to add a millisecond wait in front of every element discovery. I'm not a fan of this solution, but I don't have a better one at this time.

@dougnoel dougnoel added the bug Something isn't working label Feb 27, 2020
@dougnoel dougnoel added this to the 1.0.4 milestone Feb 27, 2020
@dougnoel
Copy link
Owner Author

Wanted to fix by upgrading to 5.6.0 with ticket #93 but that hit a snag.

dougnoel added a commit that referenced this issue Apr 19, 2020
Fixed #60 by adding a 2 millisecond wait before searching for element…
@dougnoel dougnoel reopened this May 9, 2020
@dougnoel
Copy link
Owner Author

dougnoel commented May 9, 2020

Still not working. Looks like waiting for the page to load may solve the problem. Need to fix that. Will also get rid of a problem I'm having because I'm suppressing a thread error. PageElement.java line 102

@dougnoel
Copy link
Owner Author

The wait of 0.002 seconds was actually adding a whole second of wait time. I think that waiting for page re/load will solve the problem.

Separately, I noticed that the Prime NG tests seem to stall if focus is moved from the window the test is running in on chrome/mac.

dougnoel added a commit that referenced this issue May 12, 2020
Fixed #60 where waits were necessary after page loads and some drop d…
@dougnoel dougnoel modified the milestones: 1.0.4, 2.0.0 Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant