'Martin Klefas-Stennett' via Selenium Users
2018-11-26 15:24:43 UTC
I've been using Selenium in personal projects for some time now, but this
represents the first time I'm creating a Selenium-based solution for
someone else.
The project works fine on my machine, but when I use the "Build-> Publish"
option within Visual Studio Community 2017 the installer that gets created
doesn't seem to include a chromedriver.
I've referenced the StrongNamed package available
here: http://selenium-release.storage.googleapis.com/index.html?path=3.141/
and added that through NuGet, I've also included
"Selenium.Webdriver.ChromeDriver" by jsakamoto downloaded from nuget.org
through their package manager.
Rather than all the code, I've put in a test button.
Private Sub Button4_Click_1(sender As Object, e As
RibbonControlEventArgs) Handles Button4.Click
Dim options As New Chrome.ChromeOptions
Dim service As ChromeDriverService =
ChromeDriverService.CreateDefaultService
MsgBox("trying to open a chrome window")
Try
Dim wd As New Chrome.ChromeDriver(service, options)
wd.Navigate.GoToUrl("http://www.google.com")
Catch
MsgBox("oh dear, that didn't work at all!")
End Try
End Sub
At present when running on my machine the test button opens a chrome
window, when running on the target machine it does nothing.
Any help would be greatly appreciated.
represents the first time I'm creating a Selenium-based solution for
someone else.
The project works fine on my machine, but when I use the "Build-> Publish"
option within Visual Studio Community 2017 the installer that gets created
doesn't seem to include a chromedriver.
I've referenced the StrongNamed package available
here: http://selenium-release.storage.googleapis.com/index.html?path=3.141/
and added that through NuGet, I've also included
"Selenium.Webdriver.ChromeDriver" by jsakamoto downloaded from nuget.org
through their package manager.
Rather than all the code, I've put in a test button.
Private Sub Button4_Click_1(sender As Object, e As
RibbonControlEventArgs) Handles Button4.Click
Dim options As New Chrome.ChromeOptions
Dim service As ChromeDriverService =
ChromeDriverService.CreateDefaultService
MsgBox("trying to open a chrome window")
Try
Dim wd As New Chrome.ChromeDriver(service, options)
wd.Navigate.GoToUrl("http://www.google.com")
Catch
MsgBox("oh dear, that didn't work at all!")
End Try
End Sub
At present when running on my machine the test button opens a chrome
window, when running on the target machine it does nothing.
Any help would be greatly appreciated.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/71001ba1-ea5a-4d90-b499-efee048028da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/71001ba1-ea5a-4d90-b499-efee048028da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.