-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
$I->loginAsAdmin() always fails on travis-ci #121
Comments
I've experienced the same thing. The solution I came up with was to fill the field twice. I'm not sure that is really any different than adding a wait period or not. Trying what was suggested in #65 didn't seem to help. I wonder if filling the field twice helps to prime it for the second filling, rather than just adding more time. I don't remember if I tried just adding a wait period or not. Whatever works, I guess. I am using PhantomJS rather than Chrome, so it is also possible that they have different quirks. |
@JDGrimes I tried it with all major browser drivers and faced same issue. Adding a wait surely solved it but that is making test slow. Though I tried using |
Thanks for reporting the issue, I've opened a branch ( |
No this does not solve the issue. I already tried waitForElement and waitForJS, none of them works except wait. Really unsure why.
To replicate this issue add 5 to 10 loginAsAdmin in single or multiple cest or cept. Using @example creates this issues as well.
…________________________________
From: theAverageDev (Luca Tumedei) <[email protected]>
Sent: Monday, January 8, 2018 4:45:53 PM
To: lucatume/wp-browser
Cc: Rahul Aryan; Author
Subject: Re: [lucatume/wp-browser] $I->loginAsAdmin() always fails on travis-ci (#121)
Thanks for reporting the issue,
I've opened a branch (fix-login-as-issue-121) to try and fix the issue; it will wait for the login form to appear when in *WebDriver modules using the waitForElementVisible method.
If you are willing to try it out and let me know if it helps use composer update lucatume/wp-browser:dev-fix-login-as-issue-121 to pull it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#121 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AA39HISNvwwo2h4yU8OC1S2YTbBPxqLVks5tIfjpgaJpZM4RVPu3>.
|
To move the discussion further: I'm using that code here with PhantomJS on Travis with no issues. |
No activity for a long time on this one, @rahularyan could you please provide the information requested in #121 (comment)? |
As I said before, calling |
The question is "How many times, and driving which browser, are you using it?"; if you want help please provide more information. |
4-5 times. Using chrome ;) |
Headless chrome? Could you please post the suite configuration file? |
To avoid to report the same problem, I´m writing here. I tried
I got this error
|
Introduce login re-attempts in WpWebDriver to avoid missing cookies issues, resolves #121
Hello,
Build always fails whenever I use
$I->loginAsAdmin()
in travis-ci. Not just travis, it happens in localhost but less frequently.In chrome I noticed that framework is trying to fill username field too early. If username is
admin
then I see onlyin
is filled.To solve the issue I just added 3 seconds of wait and everything looks good now.
The text was updated successfully, but these errors were encountered: