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
Questions tagged [canopy-web-testing]
37 questions
2
votes
1 answer
System.MissingMethodException: Method not found: 'Microsoft .FSharp.Core.FSharpFunc`2
I've got a problem when launching a Canopy test in a Windows box:
Unhandled Exception: System.MissingMethodException: Method not found: 'Microsoft
.FSharp.Core.FSharpFunc`2 canopy.core.get_xpath()'.
at…

knocte
- 16,941
- 11
- 79
- 125
2
votes
1 answer
Using Selenium Code with F# Canopy
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…

DevLife
- 125
- 2
- 9
1
vote
2 answers
F# Canopy: Not picking up certain page elements
I am a newbie to F# Canopy and am testing out inputting a date into input boxes at https://www.treasurydirect.gov/GA-FI/FedInvest/selectSecurityPriceDate.htm. When running the Canopy code below, I receive a "user-unhandled" exception stating…

Tom Atwood
- 468
- 3
- 17
1
vote
1 answer
Running Canopy in Azure Devops
I have a couple of automated tests written in Canopy. I run them locally by running the following command:
dotnet run Project.AutomatedTests.fsproj
on Azure DevOps I tried to configure them the same way, so I have the following steps:
1.
dotnet…

MNie
- 1,347
- 1
- 15
- 35
1
vote
0 answers
How to get the name of the currently executing test in Canopy
I would like to get the name of the currently executing canopy test inside the before function.
Is there some kind of global context I can refer to or do I need to dive into selenium?

Nick
- 6,366
- 5
- 43
- 62
1
vote
1 answer
How to make my local website opens by URL
I setup an apache server and created a website in: var\www\mywebsite.
When I type my website name in the browser's address bar, it directs me to the internet. When I disabled the network (as temporal solution) it did not open the website at all.…

user7945230
- 1,075
- 2
- 13
- 20
1
vote
2 answers
Why am I getting stackoverflow exception when calling a function twice?
I have a selenium UI test written with F# (using canopy selenium nuget package). I have a module that defines page selectors and helper functions. The page module is called by a test module. Within the test module, I am calling a function called…

codet3str
- 93
- 1
- 5
1
vote
0 answers
F# Canopy Select or Dropdown with Option Group
How do you select an option or set the value in a select list that has option groups?
This method does not work: How to change a dropdown in an F# Canopy UI Testing Script
sample code:

chongo2002
- 131
- 1
- 5
- 12
1
vote
1 answer
How to upload file in canopy?
I have an upload file input on page. How can I test this element in canopy? How to set path to file in input? I tried standard '<<' operator but it doesn't seem to be working in this case.

Twelve
- 578
- 7
- 15
1
vote
1 answer
How can I run an Automate Selenium Test with Canopy F# in Safari and Edge?
I wrote a test in Visual Studio with Canopy and it works with Chrome and IE, but I need to do the same with Safari and Edge.

yiyarguez
- 13
- 2
1
vote
0 answers
f# canopy testing framework assert ==
While this command is successful
".navbar-brand" == "AUP"
Can anyone tell me why this line:
(element ".navbar-brand") == "AUP"
results in this error?
Error: Can't check equality on OpenQA.Selenium.Remote.RemoteWebElement because it is not a…

arsdata
- 11
- 2
1
vote
1 answer
How can I get waitFor to work when using canopy?
I'm using canopy, and I can't get the waitFor method to work.
I'm trying to use it like this:
waitFor noBlockUI
where the noBlockUI function is:
let noBlockUI () =
(someElement "div.blockUI").IsNone
Now the waitFor call is in a function in an…

Ryan Lundy
- 204,559
- 37
- 180
- 211
0
votes
1 answer
Running only certain canopy tests as specified on command line
Let's say I have the following simple Canopy test program:
open System
open canopy.runner.classic
open canopy.configuration
open canopy.classic
canopy.configuration.chromeDir <- System.AppContext.BaseDirectory
start chrome
"test 1" &&& fun _ ->
…

dharmatech
- 8,979
- 8
- 42
- 88
0
votes
1 answer
How to run a Canopy test suite with xUnit?
I decided to use canopy framework to test my UI.
Most of the examples include either built-in assertion framework or Expecto. Which are both good choices yet I use xUnit everywhere else in the project and want to be uniform for now.
For xUnit I have…

psfinaki
- 1,814
- 15
- 29
0
votes
1 answer
button extension in f# canopy
I'm trying to make a general button extension in f# and canopy.
as you know we can click a button like this in canopy
click (//button[contains(text(),'save')])[last()]
But I'm trying to do something like this.
let _button value = sprintf…

Dymond
- 2,158
- 7
- 45
- 80