These are chat archives for Behat/Behat

27th
Sep 2017
Hedoux Tony
@TonyHedoux_twitter
Sep 27 2017 09:32
I am totally blocked at making a chain Behat 3 / Firefox 55 (64 bits) / Gecko driver (0.18) works. The browser is launched, the page (base_url) is loaded, but no matter what the content of the HTML ($session->getPage()->getHTML()) is null
any clue about what can be going wrong? (I can share the whole projet easily, it is a sample on google home page)
vincentmary
@vincentmary
Sep 27 2017 09:49
@TonyHedoux_twitter Did you run selenium?
Hedoux Tony
@TonyHedoux_twitter
Sep 27 2017 09:50
Yes, a 3.5.3 version, in node and (local) mode
vincentmary
@vincentmary
Sep 27 2017 09:50
@TonyHedoux_twitter No there is no Selenium3Driver for Selenium. But I works with Selenium 3.5.3
Can you show the scenario?
vincentmary
@vincentmary
Sep 27 2017 12:07
Hello, I would like to know if it's possible to have Examples in a custom method instead of hard-coded in the .feature file
Therefore i would be able to play my scenario outline with different values depending the context i'm using
Hedoux Tony
@TonyHedoux_twitter
Sep 27 2017 12:52
Well, so far, I have tried again with a fresh installation (64 bits all, behat nighty build, Firefox 54.x, Geckodriver 0.19.x), and the issue is the same :
$this->getSession()
->getPage()
->getContent() => return the good content
$this->getSession()
->getPage()
->getHtml() => return nothing
Hedoux Tony
@TonyHedoux_twitter
Sep 27 2017 13:06
$this is a mink context
Christophe Coevoet
@stof
Sep 27 2017 13:10
Selenium2 was changing the protocol being used, which is why it needed a different driver than Selenium 1. Selenium 3 is an evolution of version 2, so our driver covers it too (too bad for the name)
For GeckoDriver with Selenium 3 though, you may get better result using the dev version of Selenium2Driver, as we have unreleased improvements for it (GeckoDriver implements the W3C WebDriver protocol, not the Selenium WebDriver protocol, so there are a few differences)
and then, GeckoDriver itself might have issues
when I tried it a few months back, it was not yet feature complete
Hedoux Tony
@TonyHedoux_twitter
Sep 27 2017 13:35
Thx a lot!
Hedoux Tony
@TonyHedoux_twitter
Sep 27 2017 17:38
Ok, i have update every tools to the last version available : Behat in 3.4.1, and other Mink, Mink/extension, Selenium2Driver in "@dev" version
Result is worth :p. Even the opening of base_url is no more working
I will redo a test trying with a whole "stable" set, but if someone have a minimum project working (Behat 3 + Selenium 3 with FIREFOX), i 'm really interested
Thx for your help :sparkles:
Syed Mohammad Ali
@AliShirazi4_twitter
Sep 27 2017 18:34
Screenshot from 2017-09-27 17-10-36.png
I am trying to select an option from this dropdown. but i am not sure what would be the right way. i want to do it using predefinrd step definitions
Screenshot from 2017-09-27 17-12-39.png
ANd this is the code of this element
Hedoux Tony
@TonyHedoux_twitter
Sep 27 2017 19:28
Last result of trying to run a set Behat 3.x / Selenium 3.5.x / Firefox (coming from the log of Selenium...) :
21:14:32.046 INFO - Capabilities are: Capabilities {browser=Firefox, name=Behat feature suite, browserName=Firefox, ignoreZoomSetting=false, version=, tags=[J1360816, PHP 7.1.9], }
21:14:32.046 INFO - Capabilities {browser=Firefox, name=Behat feature suite, browserName=Firefox, ignoreZoomSetting=false, version=, tags=[J1360816, PHP 7.1.9], } matched class org.openqa.selenium.remote.server.ServicedSession$Factory (provider: org.openqa.selenium.chrome.ChromeDriverService)
Starting ChromeDriver 2.32.498550 (9dec58e66c31bcc53a9ce3c7226f0c1c5810906a) on port 2108
Asking Firefox, starting Chrome, I don't even know how it is possible :)
I will go back to the 2.5.x version for now
Hedoux Tony
@TonyHedoux_twitter
Sep 27 2017 19:50
For the last one : it was because the good name of Firefox is firefox...