-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension of #313 LiveHTMLReporter()... #322
Comments
Nope you have to install the browser if you want to launch it. You can use chrome instead if you are allowed to use that? Chrome is the best support in my opinion. |
Okay, then I'm puzzled. My code used Chrome. The call to FF is commented out. The failing line is "LiveHtmlReporter()" I didn't know if it was a function of FF. Program.fs (snippet): // Implement new html reporting
open reporters
reporter <- new LiveHtmlReporter() :> IReporter
#if DEBUG
//start firefox
start chrome
#else
start phantomJS
#endif |
Before gecko driver (last few months) Firefox was the easiest way to use selenium so that was the default. Now it takes a little more work than using chrome and is less complete, so chrome is now the best default. |
I'll go look at the starter kit.....but I just commented out the two lines for the html reporter, and now I get a different error msg regarding chrome which I do have installed. The chromedriver.exe doesn't exist on my original machine, so I'm wondering if its a new requirement:
Additional information: The file c:\chromedriver.exe does not exist. The driver can be downloaded at http://chromedriver.storage.googleapis.com/index.html |
Yes you need to have chromedriver placed at C:\ or do like canopy starter kit and put it in bin\Debug (or release) folder and change the path. For All browsers you now need a driver which needs to be kept in sync with the browser version. |
I have limited access on my own machine in my new network environment. |
Do like this https://github.com/lefthandedgoat/canopyStarterKit/blob/master/canopyStarterKit/Program.fs#L12 but use the path to the chromedriver.exe wherever you place it. Documentation on configuration is here: http://lefthandedgoat.github.io/canopy/configuration.html |
The Program.fs in your starter kit is a bit confusing to me. I haven't sorted it out just yet. I'm assuming that the args somehow determine the browser that should be launched. The The solution came from the configuration page defining You can close this issue but I might need to ask you about the program.fs file again. Should I just write you or open another ticket? |
@sprice9161 try to use the markdown features of GH for code blocks. I've updated your comments to show how to use them. |
you dont need to do anything with PATH for chrome. Just set In the starter kit the arguments come from the command line.
https://github.com/lefthandedgoat/canopyStarterKit/blob/master/build.fsx#L137-L139 |
Closed (no activity). |
Hello Chris,
This issue follows #313 LiveHTMLReporter()...
I followed what you said, downloaded the GeckoDriver.exe and defining it in my PATH. It appears that I need to install Firefox. Its an internal issue as we have recently migrated all of our servers in our environment, and I don't have the ability to download and install FF. Is there a work around to this?
Error:
The text was updated successfully, but these errors were encountered: