Questions tagged [coypu]

An intuitive, robust browser automation for .Net.

Coypu is an intuitive, robust browser automation for .Net.

It supports browser automation in .Net to help make tests readable, robust, fast to write and less tightly coupled to the UI.

If your tests are littered with sleeps, retries, complex XPath expressions and IDs dug out of the source with FireBug then Coypu might help.

The main website can be found here:

https://github.com/featurist/coypu

To install it using Visual Studio's nuget package manager use:

PM> Install-Package Coypu

18 questions
6
votes
1 answer

Selenium or Coypu Wait for element show and get time before show

I using Selenium for UI testing. What I want to when I click on a button once . Then I'll wait until an element exists. And take time on how long it takes . If it takes longer than timeout ms . So it will give 0 or not exist. I have try this using…
eriksv88
  • 3,482
  • 3
  • 31
  • 50
4
votes
2 answers

Coypu screenshot

On the end of a Scenario, I want to take a picture if it has failed. The following code does not work: [AfterScenario] public void AfterScenario() { if(ScenarioContext.Current.TestError != null) { …
Michael
  • 363
  • 5
  • 20
2
votes
0 answers

Using headless browser in Coypu

I've heen recently using Coypu (https://github.com/featurist/coypu) for some web pages automation and it's great for that, if you need UI. But I wonder if I could do it on a headless browser, afaik Copyu supports only GUI browsers out of the box and…
MichMich
  • 21
  • 2
2
votes
1 answer

How to Get InnerText using Coypu and C#?

I have the following HTML:

Welkom,

I'm using coypu to find the elements, when I…
MPereira
  • 113
  • 1
  • 8
2
votes
1 answer

How to get Selenium IWebDriver and IWebElement from Coypu?

I recently started using Coypu to automate some task with a Web Browser. It works great, especially when filling out forms and navigating links. Now, I am attempting to work with the table data. I actually want to take the table data and…
Kris
  • 363
  • 3
  • 11
2
votes
2 answers

how can i download a PDF from Chrome using Selenium in C#

I hve tried every possible way available to download a PDF Report from Chrome without opening a new PDF Viewer Tab. I want to download the PDF directly on my local drive. I am Using Coypu to develop my automation framework The Code which i am using…
JSingh
  • 21
  • 1
  • 2
2
votes
2 answers

Testing an ASP.NET application (integration, unit) using BDD

I'm wanting to do some integration tests on our ASP.NET website. I'd like to run these tests: Integration tests on a headless browser or selenium without having to rewrite code. Would like it to integrate with the Visual Studio 2012 Test…
Caleb Jares
  • 6,163
  • 6
  • 56
  • 83
1
vote
2 answers

Disable Chrome Automation Extensions with Coypu

I am trying to create an automated test framework using the Selenium Wrapper: Coypu. When I try and run an Automated UI test I get the error: "Failed to load extension from: (file path goes here). Loading of unpacked extensions is disabled by the…
1
vote
0 answers

Attach a WatiN.Core.Browser instance to a Coypu.BrowserSession?

I have a SpecFlow feature which has to populate and submit a (pesky!) Windows authentication dialogue box. To do this I am creating an instance of WatiN.Core.Browser; I'm doing this as opposed to using Coypu directly as it does not look like I can…
Ben Smith
  • 19,589
  • 6
  • 65
  • 93
1
vote
1 answer

Get elements by name IE8 on different tab (Javascript)

I am developing on a program in C# that automates inputting information into a website. This program uses a library (Coypu) that allows this and for the execution of Javascript to manipulate further. The problem comes in two forms: The website…
0
votes
2 answers

How can I run my tests in incognito mode?

The solution I'm testing saves the login so when I open a new browser the login is already done and my tests fail. browser.Dispose() doesn't work in this case. It would be better to test in incognito mode and I noticed that changing the driver's…
MPereira
  • 113
  • 1
  • 8
0
votes
1 answer

Coypu using InternetExplorerOptions

I've been developing automation using Selenium and InternetExplorerDriver for a while. I want to move to Coypu and I'm trying to convert my code. In Selenium I would specify: InternetExplorerOptions customProfile = new InternetExplorerOptions() { …
0
votes
1 answer

Coypu wait until one of the two elements is present

I use Coypu for my tests. How can I wait until either a certain css appears or a certain text? Right now my solution is this: browser.Visit(uriContext.Uri.ToString()); var deadline = DateTime.UtcNow.Add(WebAppWarmUpTimeout); while (DateTime.UtcNow <…
mark
  • 59,016
  • 79
  • 296
  • 580
0
votes
0 answers

Is it possible to provide a default timeout for operators like FindCss and FindField in Coypu?

I have the following test using Coypu: var options = new Options { Timeout = TimeSpan.FromSeconds(1) }; using (var browser = GetFreshBrowserSession()) { browser.Visit(TestParamNames.LoginUri.GetParameterByName() + "candidateportal/en-US/" +…
mark
  • 59,016
  • 79
  • 296
  • 580
0
votes
1 answer

Could not load type Coypu.SessionConfiguration

I have created a Simple test with Coypu. Below are the packages I have installed to use Coypu
1
2