Questions tagged [protractor-net]

The .NET port of Protractor, an end to end test framework for Angular applications.

68 questions
4
votes
0 answers

How to set value of text-angular using C# protractor?

I am using text-angular (https://github.com/textAngular/textAngular) in my application as a textbox for writing mails. While writing tests through C# protractor, I am unable to update the value of textbox. Even though I am able to access the…
Vikas Vaidya
  • 358
  • 3
  • 15
4
votes
1 answer

ITimeouts.SetScriptTimeout(TimeSpan) is obsolete - Selenium c#

I used script to handle wait for AngularJS processing, and SetScriptTimeout (as below code) and after update to selenium 3.2.0 , I am getting following warning ITimeouts.SetScriptTimeout(TimeSpan) is obsolete ........., Please set the…
4
votes
1 answer

Loading Browser only once in Protractor.NET?

I am a newbie to Protractor.NET and I apologize if it is a layman question. I am testing my AngularJs application using Protractor.NET. I have written multiple Test scenarios in C#. But for each and every test which is executed, the Protractor loads…
Karthik
  • 1,064
  • 2
  • 16
  • 33
3
votes
1 answer

Is it a good practice to place an assertion in the afterEach block?

Environment: Protractor, jasmine, typescript I have several tests that have different setup and the same assertion. Is it a good practice to enter different steps in each it inside a describe and the expect assertion in the afterEach block? Example:…
tz0
  • 300
  • 2
  • 10
3
votes
2 answers

Testing ASP.NET Core app using Protractor in Visual Studio 2015

I've got a ASP.NET Core Project based on the angular2 template from the core template pack. I added a second project with xunit and protractor to run unit test against my main app. Both work nicely alone, there is just one small thing I miss: When…
Sam
  • 28,421
  • 49
  • 167
  • 247
3
votes
1 answer

Timed out waiting for async script result Selenium C# Protractor

I'm trying to create an automation test script using Protractor.net for an AngularJS platform, with Selenium in C#. I've created the driver using the below code. driver = new FirefoxDriver(); Ngdriver = new NgWebDriver(driver); And then attempted…
MatthewThomas.dev
  • 1,045
  • 10
  • 24
3
votes
1 answer

asynchronous script timeout

I am new to protractor & using Protractor-net. Getting an "Asynchronous script timeout: result not received in 0 seconds" exception when running Protractor-net scripts. https://github.com/bbaia/protractor-net Does this mean the parameter passing to…
ReuseAutomator
  • 410
  • 3
  • 14
2
votes
3 answers

How to select an element in ng-autocomplete in protractor?

Passing text through sendKeys("dublin,south Africa"); It is unable to select the first element in autocomplete.
2
votes
2 answers

Implicit and Explicit wait approaches in the framework

We are using Protractor 3.6 version in our project to automate the angularJS application. We have master angular application where many standalone angular apps been implemented as iframe. that is we can access those apps directly hitting the SPA and…
2
votes
2 answers

Invalid Operation Exception in C# Unit Test using Protractor

I have a simple test class like this: public class MyTest { const string URL = "https://example.com/content/mypage.aspx"; IWebDriver driver; NgWebDriver ngDriver; [SetUp] public void Setup() { driver = new…
notlkk
  • 1,231
  • 2
  • 23
  • 40
2
votes
1 answer

Protractor : browser.get() doesn't function

I am a newbie using protractor for angularjs app e2e testing. I have the latest version of protractor setup and using Visual studio 2015 as the IDE. The function browser.get() mentioned in my tests doesn't work and only opens up a browser window…
2
votes
0 answers

How can I get around my mouse pointer that has to be on the browser

I have the following code var dragUserTask = element(by.repeater("item in getItms(slctCat)").row(0)); browser.actions() .mouseMove(dragUserTask) .mouseDown() .mouseMove({ x: 400, y: 400 }) .mouseUp() …
Peter
  • 21
  • 1
2
votes
1 answer

Using Data Objects while E2E testing with Protractor

So a coworker and I were discussing making a data object for our e2e tests. From my understanding about data objects they are used for decoupling your test suites. For example, my first test suite is to create an account and to test if the fields…
2
votes
1 answer

Protractor and IE11 navigation issue

I am using Protractor.Net and having a weird issue with IE. I believe the issue has something to do with the site bootstrapping but not knowledgeable enough to figure it out. However same code works fine on Chrome and Firefox. There are two…
Saifur
  • 16,081
  • 6
  • 49
  • 73
1
vote
3 answers

SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 85

Currently i am working protractor UI testing. My testcase is working properly so far, but suddenly it shows a webdriver problem. My current chrome version is 84. But the selenium driver is expecting version 85. Version 85 is still not…
1
2 3 4 5