Questions tagged [canopy-web-testing]

canopy is a web testing framework written in F#. And has the following key benefits: Solid stabilization layer built on top of Selenium. Quick to learn. Even if you've never done UI Automation, and don't know F#. Clean, concise API. MIT License

37 questions
13
votes
1 answer

error MSB4102: The value "" of the "Project" attribute in element is invalid. Parameter "path" cannot have zero length. F#

I am getting following error while building project in Team city. Same project is getting build on Local machine. Local machine has VS 2015 and F# 4.0. My Project Configuration is as below.
Kunal Shah
  • 333
  • 2
  • 3
  • 9
10
votes
1 answer

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

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…
Graham
  • 3,217
  • 1
  • 27
  • 29
9
votes
2 answers

I want Canopy web testing results to show in VS 2013 test explorer... and I'm SO CLOSE

I'm trying to figure out how to get the test results for Canopy to show in the VS test explorer. I can get my tests to show up and it will run them but it always shows a pass. It seems like the Run() function is "eating" the results so VS never sees…
Beth Lang
  • 1,889
  • 17
  • 38
5
votes
1 answer

Canopy - Working With Select Lists

I have just started working with Canopy and am struggling with select lists. I know you can set the selected item by value by doing: "#dropDown" << read "option[value='x']" However, how would you select the nth element of a select list> Or, how…
bp123
  • 195
  • 9
4
votes
1 answer

How do I get Canopy's LiveHtmlReporter to work?

I'm working on a presentation demoing Canopy and I am trying to get the LiveHtmlReporter to work, but have not been successful. So far, I've been able to get it to open a browser that displays the Template and to save the report to disk, but the…
Hamman359
  • 1,052
  • 2
  • 14
  • 27
4
votes
1 answer

F# Canopy - how can I use the "context" tests?

I am stumped on how to format the "context" test utilizing the Canopy API. The following website lists examples, but I cannot get my program to build with the following code. I have tried other indentation, with no change. reference:…
Brien Foss
  • 3,336
  • 3
  • 21
  • 31
4
votes
1 answer

Get access to httponly cookies with canopy

I need to clean session cookies during canopy tests. I dont see any way to do it documentation. Currently I managed to get to core.browser.Manage().Cookies which is a OpenQA.Selenium.Remote.RemoteCookieJar But I dont know how to remove the cookie…
Yaroslav Yakovlev
  • 6,303
  • 6
  • 39
  • 59
4
votes
2 answers

Site scraping with F# and Canopy

I am trying to write a simple scraper using F# and Canopy (see http://lefthandedgoat.github.io/canopy/). I am trying to extract text from all element with the class ".application-tile". However, in the code below, I get the following build error and…
Martin
  • 39,309
  • 62
  • 192
  • 278
3
votes
1 answer

How to use Canopy with Browserstack

I have been user the f# test library Canopy and it works great. But I can't figure out how to have it target browsers on browser stack. I did find this but so it is/was possible. twitter.com/bryan_hunter/status/423352533877153792
jbeeko
  • 457
  • 3
  • 10
3
votes
1 answer

F# Canopy Close Popup Window

I'm testing a web page with Canopy that has a popup window. Does anyone know if there is a way with Canopy to close the popup window? Otherwise I guess it's a case of dipping into Selenium to handle this?
Mattl
  • 1,588
  • 3
  • 24
  • 49
3
votes
1 answer

F# Canopy - Generate Random Letters and or Numbers and use in a variable

I am using F# Canopy to complete some web testing. I am trying to create and load a random number with or without letters, not that important and use it to paste to my website. The code I am currently using is let genRandomNumbers count = let…
DevLife
  • 125
  • 2
  • 9
3
votes
2 answers

UI automation with functional languages

Does anyone have an examples or experience of writing UI automation in a functional language? I'm currently learning F# to get a better understanding of functional concepts and I'm having difficulty working out how an automated UI test would be…
Dave
  • 474
  • 1
  • 4
  • 9
2
votes
1 answer

Testing with Canopy in one command line step

Context - running tests manually Let's say I have a C# ASP.NET Core web app that I'm testing with canopy. I have a canopy project called Test. Here's how I'd normally go about manually running my canopy tests. In one PowerShell window I run the web…
dharmatech
  • 8,979
  • 8
  • 42
  • 88
2
votes
1 answer

How do you set the ChromeDriver port in Canopy (selenium library)?

I'm using Canopy within a Docker container and would like to specify the port to 4444 instead of the final random one assigned when calling canopy.core.start because of multiple connectivity errors Error: ConnectFailure (Connection refused) --or a…
Mario
  • 158
  • 10
2
votes
2 answers

"Cannot get automation extension" error on headless chrome with Selenium (Ubuntu)

I've installed latest Google Chrome 57.0.2987.110, on my Ubuntu server (16.04). I'm using canopy (which is F# wrapper for Selenium). I put latest chromedriver in the same folder as my binary, version: 2.28.455506 (and I set the correct path to…
1
2 3