Discussion:
[selenium-users] Failures when publishing a VSTO project that includes Selenium
'Martin Klefas-Stennett' via Selenium Users
2018-11-26 15:24:43 UTC
Permalink
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.
--
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.
alex
2018-11-27 09:09:38 UTC
Permalink
Hi Martin.

"Build-> Publish" was always a problem.

Recommend to Use Advanced Installer. You can add any driver you need to the build package.

Alex



From: 'Martin Klefas-Stennett' via Selenium Users [mailto:selenium-***@googlegroups.com]
Sent: Monday, November 26, 2018 5:25 PM
To: Selenium Users
Subject: [selenium-users] Failures when publishing a VSTO project that includes Selenium



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.
--
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 <https://groups.google.com/d/msgid/selenium-users/71001ba1-ea5a-4d90-b499-efee048028da%40googlegroups.com?utm_medium=email&utm_source=footer> .
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/!%26!AAAAAAAAAAAYAAAAAAAAAHWAxOzg%2BPVNlBxKPW8Fmd3CgQAAEAAAAI1bcOyAkWFLh/qltLDRif8BAAAAAA%3D%3D%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
'Martin Klefas-Stennett' via Selenium Users
2018-11-28 14:07:55 UTC
Permalink
Hi Alex,
I've tried what seem to be the default options for Advanced Installer,
created an "installer project" and selected all the packages.

Having started on a fresh PC the VSTO Addin wasn't even isntalled by the
installer though - it's not in add-ins, it's not even available but
disabled. The installer reported no issues, but also didn't do anything as
far as I can tell!!

Thanks
Post by alex
Hi Martin.
"Build-> Publish" was always a problem.
Recommend to Use Advanced Installer. You can add any driver you need to the build package.
Alex
*Sent:* Monday, November 26, 2018 5:25 PM
*To:* Selenium Users
*Subject:* [selenium-users] Failures when publishing a VSTO project that
includes Selenium
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.
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
<javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/71001ba1-ea5a-4d90-b499-efee048028da%40googlegroups.com
<https://groups.google.com/d/msgid/selenium-users/71001ba1-ea5a-4d90-b499-efee048028da%40googlegroups.com?utm_medium=email&utm_source=footer>
.
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/3057696c-7e66-4a65-a42e-008aea0bc9da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
'Martin Klefas-Stennett' via Selenium Users
2018-12-09 22:50:32 UTC
Permalink
For anyone that comes back to this:
There's a specific projects in advanced installer for vsto apps. It's not free, but it works for 30 days on a trial.

This fixed all my issues.
--
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/4c6f81fc-e42e-4fed-89da-ff4afb7fb1b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...