@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.
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-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?
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