in order for chrome to run on a headless server jimboslice-sl
you need to h ave xvfb running so it simulates a display.
jimboslice-sl
You can look at the docker-selenium containers
afaik they use the same display
ElectrumGuy
i'll look, thanks.
swycoff_pc has quit
swycoff_pc joined the channel
jimboslice-sl has quit
swycoff_pc has quit
swycoff_pc joined the channel
MarkusDBX
Is it possible to get selenium / webdriver.io visual regression testing fast? Like during a live-reload? Or I guess I just run the visual regression testing sometimes or "slow" on the build server, to make sure nothing is broken
I was hoping to run some visual regression testing fast whilst coding, to ensure browser compatibility (currently live reloading many browsers on a 4k screen with just browsersync, getting < 1sec browsersync. And just looking at it with my eyes."
stryx` joined the channel
spacecadetbrown joined the channel
GodFather has quit
GodFather joined the channel
GodFather has quit
smccarthy joined the channel
selbot2 has quit
selbot2 joined the channel
neoncont_ has quit
neoncontrails joined the channel
neoncontrails has quit
ElectrumGuy
I need to run multiple tests (10) on a headless server.
I am debating between phantomjs and dealing with the memory leaks, or xvfb and chromedriver.
any suggestions?
I have tried both approaches, they are both cpu hogs.
But every web app I've worked with at my last two jobs had jquery available, so maybe it's not a big deal
no prob!
ElectrumGuy
billagee-sl,
I think it might very well work.
However, how can I within an execute_script parametize it?
so the "value" is something provided by the script and not hard coded.
billagee-sl
I think you can prepare your JS expression a bit like that example above, before you execute it
and then pass it to execute_script ... as in this Python snippet: `"$('textarea[name=foo]').val('%s')" % some_variable`
ElectrumGuy has quit
Although I guess these days Python people use the style `"$('textarea[name=foo]').val('{0}')".format(some_variable)` :)
ElectrumGuy joined the channel
neoncontrails joined the channel
kggr has quit
Lina_ joined the channel
billagee-sl has quit
pnaranja-sl joined the channel
spathare joined the channel
kggr joined the channel
oich has quit
kggr has quit
kggr joined the channel
piotrek-sl joined the channel
pnaranja-sl has quit
mfsi_ankitm joined the channel
neoncontrails has quit
neoncontrails joined the channel
gogogo joined the channel
neoncontrails has quit
chele joined the channel
phendryx has quit
piotrek-sl has quit
phendryx joined the channel
michl68 joined the channel
squeakytoy2 joined the channel
Lina__ joined the channel
sinister153 joined the channel
Lina_ has quit
sinister153 has quit
fabrice31 joined the channel
cristi joined the channel
Steve joined the channel
WhereIsMySpoon joined the channel
michl69 joined the channel
michl68 has quit
michl69 is now known as michl68
jyothi joined the channel
jyothi
Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{marionette=true, firefoxOptions=org.openqa.selenium.firefox.FirefoxOptions@6895a785,
help
oida_ joined the channel
WhereIsMySpoon
jyothi: :clarify
selbot2
Please clarify: Are you using WebDriver, RC or IDE? What version of Selenium? What programming language? What browser and browser version? What operating system?
jyothi
IDE
spathare has quit
selenium-server-standalone-3.0.1.jar
WhereIsMySpoon
wat
jyothi: the standalone jar is for webdriver
spathare joined the channel
not IDE
and you didnt answer all the questions
jyothi has quit
phendryx has quit
phendryx joined the channel
Gachi joined the channel
Gachi
Hi, I am new to selenium, My project is in IE and facing this issue Unable to find element on closed window (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 40 milliseconds
Please provide me some solution, i am blocked due to this error message
WhereIsMySpoon
Gachi: it literally says whats wrong, you tried to find an element on a window that you previously closed
Gachi
i tried to find element but with IE element is not getting identified
WhereIsMySpoon
Gachi: please read what i said
do you know what an element is?
Gachi
yes im trying to identify using different way like id,class,xpath
WhereIsMySpoon
Gachi: do you know what a window is?
Gachi
same code is working fine in firefox
im not getting you
jumper joined the channel
jumper
Is it possible to run automated seleniumHQ with screen locked windows?
WhereIsMySpoon
jumper: yes
Gachi: your error says what’s wrong. It says you tried to find an element on an IE window that was closed.
A window is just a browser window
So for some reason you’re either closing the window you’re working on, or IE crashes and closes it, or you’re trying to operate on a window you switched to earlier that doesnt exist anymore
jumper
Do you know how to do please?
WhereIsMySpoon
jumper: you mean using webdriver?
or using IDE
jumper
yes
webdriver
WhereIsMySpoon
jumper: set it running and lock?
ive done it before
i dont think there’s any guarantee that it will work, on all browsers, but ive definitely done it before
maybe i should have been more clear there
jumper: if you rather want to run tests on no screen, u can try to run on a linux machine using xvfb
jumper
I've tried by this way but it doesn't work..
WhereIsMySpoon
or using chrome headless mode
jumper
ok so on windows, it's not possible to launch test with lock screen?
Gachi
I can able to see the browser and my browser is active, any suggestion?
jumper
what is chrome headless mode?
piotrek-sl joined the channel
piotrek-sl
Gachi: wild guess: you have two driver instances and you mixed them