#selenium

/

      • jimboslice-sl
        What do you mean with display? Browser window?
      • ElectrumGuy
        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.
      • billagee-sl joined the channel
      • billagee-sl
        I've been using https://hub.docker.com/r/elgalu/selenium/ for about a year for Chrome testing, and I've been really happy with it
      • But yes, it's a CPU hog :)
      • ElectrumGuy
        I just am not sure if I can optimize anymore..
      • billagee-sl
        I think headless chrome is very close
      • I just saw someone mention a few days ago that they actually have it running (maybe in Chromium instead of Chrome)
      • ElectrumGuy
        I have headless chrome running, bu t it won't sendkey unless I have xvfb running.
      • billagee-sl
        ah
      • ElectrumGuy
        Can you think of another way to enter something into a field without send_key()?
      • billagee-sl
        I
      • ElectrumGuy
        that is literally the only issue I have with it.
      • billagee-sl, was that a typo?
      • billagee-sl
        the bit about setting an element's value attribute? Trying to find an example in case I'm not remembering correctly
      • ElectrumGuy
      • maybe this?
      • billagee-sl
        I also had to mimic send_keys() via a JS call at one point on some OS/browser combo that had an issue
      • not sure if I still have that code around anymore, though
      • ah, this looks familiar
      • ElectrumGuy
        billagee-sl, it is within a textarea that I need to "send" the key to.
      • billagee-sl
        I often read the value of an input or textarea with `get_attribute('value')` ... I think it's pretty easy to set a value too
      • ElectrumGuy
        billagee-sl, do you have any example of entering something into a textarea?
      • billagee-sl
        hm, I found one example that was for an input element, but would probably work with a textarea - only issue is it depends on jquery :(
      • p0deje joined the channel
      • ElectrumGuy
        thanks
      • i'll give it a try
      • billagee-sl
        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