#selenium

/

      • Staunch
        do you mean alerts that will pause the test?
      • alexcreamer
        any kind of popup for the user
      • I would also like to pause the test, yes
      • Staunch
        well, you could have the driver execute a Javascript alert
      • lukeis
        use a breakpoint? :)
      • perfectsine has quit
      • Staunch
        driver.execute_script("alert('hello world');")
      • lukeis
        that is blocking
      • don't do that
      • Staunch
        yeah...
      • alexcreamer
        :s
      • Staunch
        well they want to pause the test, so maybe that's what they want?
      • lukeis
        driver.execute_script("setTimeout(function(){alert('hello world');}, 1)")
      • alexcreamer
        I would like to pause the test, yes
      • Staunch
        pause it until the user accepts the alert?
      • alexcreamer
        Where should I include that?
      • lukeis
        maybe...
      • alexcreamer
        Sorry, I'm new to the IDE
      • Staunch
        oh in the IDE?
      • lukeis
        oh, ide
      • alexcreamer
        Yes, sr
      • sry
      • lukeis
        :ide ;)
      • Staunch
        sorry i assumed you were using webdriver
      • selbot2
        Selenium IDE is no longer being maintained. You can ask a question, but most people here will be unable to help you. Instead, consider using WebDriver - http://www.seleniumhq.org/projects/webdriver/
      • alexcreamer
        oh, oops
      • I find the IDE so easy to use tho
      • I am so many test cases
      • lukeis
        you can export them ;)
      • alexcreamer
        I love the ability to quickly use page functionality
      • lukeis
        to WebDriver
      • alexcreamer
        oh, good idea
      • Staunch
        you might need to do some light cleanup after that, but you do always have that option
      • alexcreamer
        What do I output it to?
      • lukeis
        a programming language of your choice :)
      • alexcreamer
        Ok, thanks :-)
      • Staunch
        alexcreamer: export to Webdriver in whichever language you wanna use. I think there's also a "remove" option, only use that one if you're going to hook it up to a Grid or something (but you can always change it afterwards anyway)
      • er, "remote," not "remove"
      • lukeis
        was certainly kind of the evil tester http://seleniumsimplified.com/2016/07/first-imp...
      • AutomatedTester
        ooo test failures mentioned in that
      • ericmeds joined the channel
      • Selenium-Github
        [13selenium] 15lukeis pushed 2 new commits to 06master: 02https://git.io/vKhMi
      • 13selenium/06master 1479d02a1 15Luke Inman-Semerau: bumping version to beta2
      • 13selenium/06master 1437d3b6b 15Luke Inman-Semerau: System Property DRIVER_USE_MARIONETTE if set in java or command line arg with server will ignore desired capabilities and force marionette when true or force legacy firefox driver when false. Default unset, listens to capabilities requested.
      • AutomatedTester
        lukeis: did you do a python release last night?
      • lukeis
        nope
      • see davehunt's concerns in the :log
      • selbot2
      • lukeis
        from about 6 hours ago
      • titusfortner joined the channel
      • AutomatedTester
        lukeis: the pre-release suffix stuff?
      • lukeis
        yeah 3.0.0b1 or whatever he said
      • AutomatedTester
        lukeis: I was planning on doing that
      • lukeis
        +1
      • AutomatedTester wants to be a good citizen... sometimes at least
      • doeet
      • looks like jimevans did his .net release
      • jimevans: there going to be a IE Driver release too? or are you going to break the tie to selenium versions on that ;)
      • jimevans
        there has literally been no change in the IE code base since the last 2.x public release.
      • lukeis
        i imaged so
      • imagined*
      • jimevans
        i can do an IE release, but i'm not entirely sure i see the point, other than to make it easier for folks to find.
      • lukeis
        ¯\_(ツ)_/¯ old one is linked from downloads page
      • jimevans
        then i'm not going to bother for now. maybe later.
      • lukeis
        i wouldn't mind you starting to tag it and release as IEDriverServer.JimsRelease.1
      • then just increment from there ;)
      • alexcreamer has quit
      • we can refer to the old versions as BJ …. Before Jim of course
      • Pankaj joined the channel
      • AutomatedTester
        jimevans: I have written some c# code...
      • I am redirecting stdout/stderr to a file in the service
      • are you happy for a change like this
      • jimevans
        AutomatedTester: and you're doing that because… ?
      • AutomatedTester
        jimevans: I was having issues with GeckoDriver and the error message from DriverService wasnt helping me with the cause
      • It just says "Can't connect to the service"
      • where, at least GeckoDriver outputs what could be wrong
      • and could guide the user
      • we also output a log that way if people get stuck that we can debug from
      • jimevans
        and GeckoDriver doesn't allow you to redirect its output to a file (like every other command-line driver service?)
      • AutomatedTester
        if you dont want it, then thats fine too
      • not at the moment
      • jimevans
        AutomatedTester: one sec.
      • AutomatedTester
        jimevans: the error message is so generic that it doesnt even suggest setting logging on the other services
      • weemsledeux joined the channel
      • jimevans
        no, and it wouldn't. in the common case, the driver's console output would be echoed to the console, but i think nunit may actually be the one overriding that.
      • dfgdrfgtfgfg joined the channel
      • (in other words, nunit is fucking with things it oughtn't be)
      • but that's not really germane to the discussion at hand
      • AutomatedTester
        well... it might be
      • if NUnit is being a twat then assuming it has 30% market share, there is 30% of users who are "WTF is it not working douche service"
      • jimevans
        if you want to add something to FirefoxDriverService class that does this, i won't scream too much, but both IE and chrome driver server executables already provide a mechanism for writing to a log file, and their respective service classes expose that functionality via properties on the object.
      • AutomatedTester
        jimevans: ok, I will do it at as a stop gap and mention it as such
      • and will raise a bug to get GeckoDriver to take a --log argument
      • jimevans
        if you want to make the base class's Start() method virtual and override it, i wouldn't kick.
      • but yes, GeckoDriver probably ought to provide that… :)
      • AutomatedTester
        ok... I will clean up the code and do land it later
      • dfgdrfgtfgfg has quit
      • :downloads
      • selbot2
        Please read this article about how to download files with Selenium, and why you shouldn't: http://ardesco.lazerycode.com/index.php/2012/07...
      • AutomatedTester
        :download
      • selbot2
      • Selenium-Github
        [13selenium] 15AutomatedTester pushed 1 new commit to 06master: 02https://git.io/vKh7Z
      • 13selenium/06master 145f3ee5a 15AutomatedTester: Bump Python to 3.0.0.b1 for prerelease
      • AutomatedTester
        lukeis: were you in the office yesterday?
      • lukeis
        yes
      • AutomatedTester
        did you see the low flying c-130 ?
      • lukeis
        no
      • don't have much of a view from my current desk
      • AutomatedTester
        apparently there was one flying at a couple thousand feet over the city yesterday
      • yay! I got the pre release stuff correct
      • (cert) dburns in ~/development/selenium on master λ pip install selenium -U --pre
      • Collecting selenium
      • Downloading selenium-3.0.0b1-py2.py3-none-any.whl (865kB)
      • 100% |████████████████████████████████| 870kB 610kB/s
      • lukeis
        w00t
      • AutomatedTester
        without the --pre it installs 2.53.6
      • to the twitters
      • lukeis
        and this is why i didn't attempt to do the python release ;)
      • AutomatedTester
        I had no idea what I was doing either
      • python packaging isnt the greatest
      • at least the pip folks made it sane-ish
      • rplevka joined the channel
      • lukeis
      • AutomatedTester: i thought you had the no idea dog in the memes… i think that needs to be fixed ;)
      • titusfortner
        "Son of a Mongoose!"
      • AutomatedTester
      • doh
      • lemme get the proper link
      • god tumblr is awful
      • lukeis
        no… that's exactly why i didn't attempt this beta release :-D
      • AutomatedTester
      • lukeis
        titusfortner: you fix the passphrase thing yet? ;)
      • titusfortner
        Either we use a Unix utility (so won't work on Windows) or we upgrade our damn JRuby
      • lukeis
        i will never use windows to deploy maven
      • titusfortner
        or we do whatever you did last time to make it work. :-D
      • lukeis
        i hard coded my password in the Rakefile.
      • no thanks
      • AutomatedTester
        no one uses maven
      • titusfortner
        so you'd be happy if I got it working for Unix?
      • AutomatedTester
        titusfortner: most people are on posix environments
      • titusfortner
        Just saying Simon said no when I suggested it
      • but if it is better than what we have...
      • just wanted to know if it was sufficiently better
      • sounds like it, so I'll work on it
      • AutomatedTester
        titusfortner: something is better than nothing
      • I can speak to Simon if need be
      • titusfortner
        He also told me it probably wasn't worth updating our JRuby at this point
      • AutomatedTester
        seriously... of the handful of people who can release... who uses windows as a dev environment
      • titusfortner
        does jimevans even use it as a dev environment?
      • or is all of it VM for him? :)