#selenium

/

      • phoenix2k18
        I want the full text result
      • dude-x
        ilja-sl the images only run the nodes and browsers necessary to be _able_ to run tests
      • your test runner has to use RemoteWebdriver with the appropriate Options class of the browser
      • phoenix2k18
        Any ideas?
      • ilja-sl
        so i need to configure something else besides that ? https://github.com/SeleniumHQ/docker-selenium/w...
      • jsdorlus has quit
      • Oh i might just understood it. Be right back.
      • It works. Thank you @dude-x.
      • dude-x
        :+1
      • ilja-sl
        Its so powerful!
      • who-am-i-sl
        @jimevans looks like it tried to run and then I got this error "Message: OpenQA.Selenium.WebDriverException : Infrastructure Error -- The Sauce VMs failed to start the browser or device.". Which seems like your code works, and now it's a problem on Sauce Labs end, do you agree?
      • jimevans-sl joined the channel
      • jimevans-sl
        i do.
      • who-am-i-sl
        awesome. Well thanks a lot! While I have you here jimevans-sl I'm also having a problem compiling the Selenium .NET bindings. Could I ask for your assistance on that?
      • jimevans
        of course.
      • unfortunately, just loading up the solution in visual studio and hitting compile isn't sufficient to give you the same thing you get from nuget.
      • though you shouldn't have any trouble actually compiling them...
      • who-am-i-sl
        jimevans-sl exactly my problem the code "builds" with no errors, but I get no Nugets or .dlls
      • jimevans
        what makes you think you get no dlls?
      • in your clone of the source, you should get built files in build\cli\Debug\net45 (and net35, net40, and netstandard2.0
      • )
      • that directory is from the root of your clone.
      • Selenium-Github joined the channel
      • Selenium-Github
        [13selenium] 15barancev pushed 2 new commits to 06master: 02https://git.io/fAZlx
      • 13selenium/06master 14da084fb 15Alexei Barantsev: [java] Disabling a couple of tests on travis.
      • 13selenium/06master 14cf0fbdd 15Alexei Barantsev: XXE Vulnerability...
      • Selenium-Github has left the channel
      • jimevans
        inspecting the properties of the WebDriver project inside the solution in visual studio shows that as the output path.
      • however
      • that's not enough to get you fully running.
      • chaddsmithema-sl has quit
      • the .NET bindings rely on two pieces of javascript code that are also in the selenium repo, and built using the closure compiler.
      • fortunately, there's a build script in the root of your clone called `go.bat` which can help you build them.
      • kpschmidt has quit
      • kpschmidt joined the channel
      • who-am-i-sl
        Okay. I was looking in the obj directories of the dotnet folder, which you pointed out is not right. I see the .DLLs where you specified https://screencast.com/t/y7A6z1bWI9HP
      • jsdorlus joined the channel
      • I'll run the go.bat
      • jimevans
        who-am-i-sl: you'll need the targets to build...
      • who-am-i-sl
        jimevans-sl I think I've done this before. Isn't this the same thing as running ".\go" in the rakefile directory?
      • tokenring joined the channel
      • jimevans
        in theory yes, but i suspect you'll want to build specific targets, not just the java bindings.\
      • who-am-i-sl
        okay. So which command do you recommend I run and point to which target @jimevans? Does this resolve the Nuget issue as well?
      • barancev-sl joined the channel
      • rsh has quit
      • Rapture joined the channel
      • jimevans
        if you need nuget packages, i'd recommend running `go //dotnet/src/webdriver:pack`
      • that will build the components, build the bindings assemblies with the components properly embedded as resources, and create a .nupkg file.
      • this all assumes you're running in a Visual Studio Command Prompt, and have the appropriate prerequisite tools available (Python 2.7, JDK8)
      • that's if you *must* have .nupkg files as your output.
      • the output will be in buck-out\gen\dotnet\src\webdriver\pack\dist
      • (again from the root of your git clone)
      • but i confess, i don't know what "the nuget issue" is.
      • rsh joined the channel
      • who-am-i-sl
        jimevans-sl I'll try that right now
      • jimevans-sl But I should have provided you a better picture of what I'm trying to do. I already went through all the steps to download and be able to build the .net bindings(download java, python...). Now I am simply trying to run all of the tests to see where they're at. And actually, looks like they're running now :tada:
      • The ones that are failing, should I fix those on my own or is there one other step I need to take @jimevans?
      • jimevans
        who-am-i-sl: you know this has been done for you, right? https://webdriver-herald.herokuapp.com
      • (at least the "running tests" part)
      • who-am-i-sl
        jimevans-sl yes, I've seen that. But if I wanted to do a pull request, you don't want us to run the tests locally first?
      • jimevans
        i didn't say that.
      • i prefer a discussion here before we talk about pull requests. what PRs are you considering?
      • rsh has quit
      • i rarely get what i prefer.
      • who-am-i-sl
        Haha, I'm happy to talk to you about it jimevans-sl
      • rsh joined the channel
      • jimevans
        who-am-i-sl: so what do you feel like you're missing, or what needs to be fixed in the current .NET bindings?
      • who-am-i-sl
        I actually started a discussion with you previously about this https://github.com/SeleniumHQ/selenium/commit/9...
      • selbot2
        03jimevans 6 months ago - Removing Proxy property from instance of HttpWebRequest in .NET | https://github.com/SeleniumHQ/selenium/commit/9...
      • jimevans
        so you want to put a proxy between the .NET bindings and the remote driver.
      • (as opposed to a proxy between the browser and the website being automated)
      • al-damiri joined the channel
      • who-am-i-sl
        jimevans-sl exactly about your first point!
      • aryahya-sl has quit
      • jimevans
        there's no need to make changes to the bindings to do this. the extension points already exist.
      • (they're relatively new, but they do exist now)
      • give me a second to code up a quick sample.
      • who-am-i-sl
        jimevans-sl awesome :)
      • smccarthy joined the channel
      • dylanlive-sl has quit
      • jmvanel joined the channel
      • Selenium-Github joined the channel
      • Selenium-Github
        [13selenium] 15barancev pushed 2 new commits to 06master: 02https://git.io/fAZ0q
      • 13selenium/06master 1411d49ef 15Alexei Barantsev: Deleting setup code related to phantomjs
      • 13selenium/06master 14308609f 15Alexei Barantsev: Install 'requests' package required to download buck executable
      • Selenium-Github has left the channel
      • jimevans
      • jsdorlus has quit
      • who-am-i-sl
        jimevans-sl I see. I think that will do it. I'll need to try it out because it was in issue our client was having that I'll need to recreate. But I don't see why it wouldn't work :)
      • jsdorlus joined the channel
      • jimevans-sl thanks a lot for all of your help! And let me know if I can help with contributions to the project somehow. I'd be happy to do so
      • jimevans
        glad i could help.
      • rsh
        exit
      • exit
      • rsh has quit
      • nipa-sl joined the channel
      • ilja-sl has quit
      • nipa-sl
        Hi everyone. :wave: I'm new to Selenium and Docker, but am under the impression that I need to create a Docker image with a full Selenium grid. What's the best place to get some advice on that?
      • jimevans-sl has quit
      • jsdorlus joined the channel
      • douglasmpetti-sl joined the channel
      • douglasmpetti-sl
        nipa-sl you use pre-made images: https://github.com/SeleniumHQ/docker-selenium/
      • fok34 has quit
      • nipa-sl
        douglasmpetti-sl There is no pre-made image that contains a full grid - only separate ones for the hub and each node.
      • douglasmpetti-sl
        ideally you'd want them separate, any particular reason you'd want both in 1?
      • nipa-sl
        Yes, because GitLab runs builds in a Docker image, but I couldn't get Docker-in-Docker (launching the grid from inside the build image) to work, so now I'm considering creating a single image with the entire grid.
      • barancev-sl has quit
      • smccarthy joined the channel
      • jsdorlus joined the channel
      • jmvanel has quit
      • jsdorlus has quit
      • hazmeister-sl joined the channel
      • hazmeister-sl
        nipa-sl if you only need the one browser, use a standalone meeting
      • *meeting = container
      • nipa-sl
        I need at least two (Chrome, Firefox) and consider adding an Android emulator later.
      • hazmeister-sl
        ok, so you will likely need a hub
      • unless you start the relevant container before your test
      • nipa-sl
        Locally the hub works perfectly (with docker-compose).
      • jmvanel joined the channel
      • It
      • The problem only exists on GitLab because even though it allows pulling in additional containers as services (a database, for example), these can not connect back to the build image, which is where the application is launched that I want to test.
      • jsdorlus joined the channel
      • I'm afk now, if anybody has an idea or a channel that is better suited or knows someone who could help, I would greatly appreciate that. :)
      • TheSchaf has quit
      • hazmeister-sl
        @ddavison can you make any recommendations here?
      • ddavison-sl joined the channel
      • jsdorlus has quit
      • ddavison-sl
        yes, hazmeister is correct - just use the standalone containers then if you need to run 1-off tests. otherwise, your selenium grid / nodes should remain seperate from builds. your gitlab builds would just run your tests, while the grid and nodes are passively up somewhere else
      • antonello-sl joined the channel
      • antonello-sl
        nipa-sl We use an approach similar to what you can find in example the repo below, which is a stripped down example. https://github.com/anto-ac/node-firefox-cannot-...
      • We create and tear down a grid on each build.
      • who-am-i-sl has quit
      • Using a shell script like in the example would allow you to invoke docker-compose from within the gitlab docker container
      • tokenring has quit
      • douglasmpetti-sl has quit
      • barancev-sl joined the channel
      • barancev-sl
        oops... a regression bug in marionette
      • whimboo
        barancev-sl: what's up
      • barancev-sl
        testHandlesTwoAlertsFromOneInteraction -- https://github.com/SeleniumHQ/selenium/blob/mas...
      • fails in today's nightly
      • version "63.0a1 (2018-08-27) (64-bit)" is OK
      • today's one is "63.0a1 (2018-08-29) (64-bit)"
      • whimboo
        maybe related to 1479368
      • interesting anyway given that this behavior is now more spec compliant
      • hm
      • what the failure message for the Python test
      • barancev-sl
        what says the spec about "two alerts"?