canopy-web-testing

F# canopy - how to use LiveHtmlReporter?

北城余情 提交于 2020-01-03 04:52:45
问题 I am trying to get F# and canopy to log tests in html files. So here it says that all I need to do is: open configuration open reporters reporter <- new LiveHtmlReporter() :> IReporter This didn't work for me. I managed to start the LiveHtmlReporter by using Chrome to start it. Now I am struggling to make it save the reports after tests are finished. When I try to use: reporter <- new LiveHtmlReporter(Chrome, "C:\\") :> IReporter let liveHtmlReporter = reporter :?> LiveHtmlReporter

Using Selenium Code with F# Canopy

Deadly 提交于 2019-12-11 03:04:37
问题 I am attempting to use Selenium code with F#, I am also using the canopy wrapper. Canopy uses Selenium to make some of it's calls. My issue is I am struggling to covert Selenium code from Java, C# into an F# format, there doesn't seem to be much help on the internet. Is anyone able to shed some light on basic conversions. For example in JavaScript the code to get the title of the webpage is driver.getTitle().then(function(title) { console.log('Page title is: ' + title); }); F# doesn't seem to

How to change a dropdown in an F# Canopy UI Testing Script

早过忘川 提交于 2019-12-08 17:05:38
问题 I am really enjoying using Canopy Web Testing to test out my .NET Web Apps with F#. However the documentation is sparse. I'm looking for a hint on how to change an HTML select tag to select an element based on a value of an option. Right now, all I can manage to do is calling the click event from Canopy, and then firing press down the correct number of times in my test to get to the proper element. Of course, this means my tests all break if the number of elements in the dropdown changes.