looks like the layout chanced in some behat or selenium version, so i've got that done now. looks like headless is only in the beta chrome of 59 though. suck
railswebdev joined the channel
steele2345 has quit
steele2345 joined the channel
steele2345 has quit
dsdeiz joined the channel
dsdeiz has quit
steele2345 joined the channel
steele2345 has quit
dsdeiz joined the channel
Lina_ joined the channel
dsdeiz has quit
steele2345 joined the channel
dsdeiz joined the channel
dsdeiz has quit
dsdeiz joined the channel
steele2345 has quit
steele2345 joined the channel
dsdeiz has quit
capuk_ joined the channel
capuk_ has quit
NotreDev joined the channel
dsdeiz joined the channel
dsdeiz has quit
piotrek-sl joined the channel
p0deje joined the channel
steele2345 has quit
kggr joined the channel
dsdeiz joined the channel
dsdeiz has quit
dsdeiz joined the channel
steele2345 joined the channel
dsdeiz has quit
kggr has quit
spathare joined the channel
piotrek-sl has quit
kyuwonchoi joined the channel
steele2345 has quit
michl68 joined the channel
dsdeiz joined the channel
dsdeiz has quit
dsdeiz joined the channel
Steve joined the channel
fabrice31 joined the channel
cristi joined the channel
kggr joined the channel
rplevka_ joined the channel
rplevka_ has quit
rplevka_ joined the channel
kggr has quit
kggr joined the channel
korg joined the channel
kggr has quit
neoncontrails joined the channel
wewlad joined the channel
kggr joined the channel
wewlad
hello, how to check if an element exists on the page without generating an exception if it does not?
korg has quit
niemann joined the channel
niemann
Hi guys. I am trying to run some tests using the Firefox Webdriver, but it seems that it is unable to access defined variables as explained here:
niemann the issue looks to be fixed (at least that's what github says)
what is your issue?
dmitry-mayer-sl joined the channel
niemann
p0deje My issue is that if I declare a variable and want to access it later is is seemingly not defined, eg.:
IJavaScriptExecutor js = (IJavaScriptExecutor)driver; js.ExecuteScript("var test = 55;"); var result = js.ExecuteScript("return test + 1;");
This throws an exception since the "test" variable is apparently not defined
p0deje
yeah, that's expected
your variable is only scoped to the script
if you need to make available globally, you should define it for "window"
"window.test = 55;"
"return window.test + 1"
niemann
Ahh I see - that makes sense! Thanks :)
pihpah joined the channel
niemann has quit
swycoff_pc has quit
swycoff_pc joined the channel
cristi joined the channel
Lina__ joined the channel
Lina_ has quit
allanklp-sl joined the channel
johnny56 has quit
allanklp-sl
Anyone know a 'good' way to debug Behave (python). As ipdb / pdb doesn't work within the page object models. The 'after_all' method in the environment to catch failures, just drops me into a rather unless behave assertion code.