These are chat archives for Behat/Behat

23rd
Oct 2017
gvanduijn
@gvanduijn
Oct 23 2017 06:17
@panos5 I was using the latest version of Firefox. Then it was that the case, I will try an older version.
panos5
@panos5
Oct 23 2017 08:25
@gvanduijn have a look on this one http://seleniumhq.org/about/platforms.html#browsers which shows the compatibilities between the selenium driver that you run on behat and firefox.
gvanduijn
@gvanduijn
Oct 23 2017 08:29
@panos5 I am now at 56 version, so if I will downgrade it to 55/54 it should work?
I also try to get BrowserStack involved, but than I don't need the selenium driver anylong right?
Christer Edvartsen
@christeredvartsen
Oct 23 2017 10:41
I'm looking into adding a couple more hooks to Behat, one that occurs at the beginning of the test run, and one at the end. Is this something I would be able to implement as an extension to Behat, or would this require me to update Behat itself?
Currently there is @BeforeSuite and @AfterSuite ... but if my testrun executes multiple suites I'd like a hook that runs once before the first suite, then another one that runs after the last suite...
Christer Edvartsen
@christeredvartsen
Oct 23 2017 10:50
And, as an added bonus I'd like the hooks to receive the complete Behat configuration. The suite-hooks allows me to access the config of the current suite, but not the rest of the config it seems...
Looks like I'd have to exchange the HookAnnotationReader with something else as that only has a couple of private static properties regarding this... :/
luizaguerra
@luizaguerra
Oct 23 2017 12:29
Hi, everyone
Can I access the onClick() attribute of an element?
I have a lot of elements on the page that contains the same class, the only thing that can differentiate the elements is a value on the onClick()
Captura de tela de 2017-10-23 10-32-48.png
panos5
@panos5
Oct 23 2017 13:24
@gvanduijn according to this https://seleniumhq.wordpress.com/2017/08/09/firefox-55-and-selenium-ide/ you will see that from Firefox 55 onwards, Selenium IDE will no longer work.So I would suggest instead of spending time trying to downgrade one or the other and find compatibilities between the selenium server versions and Firefox you can just jump to Chrome and run your tests.
gvanduijn
@gvanduijn
Oct 23 2017 13:25
Or use maybe browserstack in stead of local testing?
panos5
@panos5
Oct 23 2017 13:26
I haven't used to be honest with you browserStack before so I don't have an opinion on this one.
gvanduijn
@gvanduijn
Oct 23 2017 13:26
Alright, thanks for you help and answers :)
panos5
@panos5
Oct 23 2017 13:27
But you can try of course and if it works for you, it is absolutely fine.
No problem @gvanduijn
gvanduijn
@gvanduijn
Oct 23 2017 13:54
@panos5 I have two context classes who has the same functions, is it possible to let my test run? In stead of giving errors that the function is already defined.
panos5
@panos5
Oct 23 2017 16:15
What kind of errors d y get @gvanduijn ?And why
you need to declare the same function in two different places?