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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Behat Mink Selenium not working for 3.141.59-palladium #922

Closed
phil-davis opened this issue Jun 6, 2019 · 5 comments
Closed

PHP Behat Mink Selenium not working for 3.141.59-palladium #922

phil-davis opened this issue Jun 6, 2019 · 5 comments

Comments

@phil-davis
Copy link

馃挜 Regression Report

3.141.59-palladium was released as latest docker image yesterday. When that happened, our webUI tests started failing e.g. https://drone.owncloud.com/owncloud/core/18073/681

  Scenario: simple user login                                                                 # /drone/src/tests/acceptance/features/webUILogin/login.feature:12
    Given these users have been created with default attributes but not initialized:          # FeatureContext::theseUsersHaveBeenCreated()
      | username |
      | user1    |
    When user "user1" logs in using the webUI                                                 # WebUILoginContext::theUserLogsInUsingTheWebUI()
      Exception: Page\LoginPage::waitTillPageIsLoaded timeout waiting for page to load in /drone/src/tests/acceptance/features/lib/LoginPage.php:103
      Stack trace:
      #0 /tmp/ProxyManagerGeneratedProxy__PM__PageLoginPageGenerated6312256563dff9947346b9792a817253.php(44): Page\LoginPage->waitTillPageIsLoaded(Object(Behat\Mink\Session), 10000)
      #1 /drone/src/tests/acceptance/features/bootstrap/WebUIGeneralContext.php(226): ProxyManagerGeneratedProxy\__PM__\Page\LoginPage\Generated6312256563dff9947346b9792a817253->waitTillPageIsLoaded(Object(Behat\Mink\Session))
      #2 /drone/src/tests/acceptance/features/bootstrap/WebUILoginContext.php(152): WebUIGeneralContext->loginAs('user1', '1234')

The Apache server sees the request for the login page, so a browser is starting, being sent a URL and does try to go there. But somehow the connection through selenium to chromedriver and the browser seems to just not "see" the web page (elements) that come back.

Reverting back to selenium/standalone-chrome-debug:3.141.59-oxygen PR owncloud/core#35442 makes UI testing great again.

Last working version

Worked up to version: 3.141.59-oxygen

Stopped working in version: 3.141.59-palladium

To Reproduce

Steps to reproduce the behavior:

  • run the ownCloud webUI tests with 3.141.59-palladium

Expected behavior

The tests should pass. In particular, the login page should be found and filled in.

Test script reproducing this issue (when applicable)

The https://github.com/owncloud/core repo webUI CI reproduces the issue - it is a bit of a large example ;)

Environment

OS: Ubuntu 18.04
Docker-Selenium image version: 3.141.59-palladium

@phil-davis
Copy link
Author

If really necessary I could try to work up some sort of small example. But I am hoping that there is some "obvious" problem with the release, or some BC break and a small change that I need to make to get CI working with the new 3.141.59-palladium

@diemol
Copy link
Member

diemol commented Jun 6, 2019

@phil-davis

From what you mention, it just sounds that PHP Behat Mink is not sending W3C commands, have you checked in their repo if they are already doing that?

@phil-davis
Copy link
Author

See also minkphp/MinkSelenium2Driver#293 (comment)
There seems to be no W3C webdriver support yet in the Behat-Mink-Selenium stack.
Now to see how I can tell it w3c:false

@diemol
Copy link
Member

diemol commented Jun 6, 2019

Oh, that is a shame 馃槥
You can add the flag in the goog:chromeOptions block.

@diemol
Copy link
Member

diemol commented Jun 6, 2019

So, I'll close this issue since it is not related to docker-selenium, hopefully PHP Behat Mink adds support for W3C soon since ChromeDriver will probably remove the flag in future releases.

@diemol diemol closed this as completed Jun 6, 2019
@lock lock bot locked and limited conversation to collaborators Aug 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants