Menu
  • HOME
  • TAGS

Loading Browser only once in Protractor.NET?

c#,protractor,protractor-net

Yes. Just use the [ClassInitialize] and [ClassCleanup] attributes instead of [TestInitialize] and [TestCleanup].

Protractor and IE11 navigation issue

angularjs,selenium,angular-ui-bootstrap,protractor,protractor-net

I actually found a bug in the project. Setting the following line before in URL property setter solves the issue ! this.driver.Url = "about:blank"; get { this.WaitForAngular(); IHasCapabilities hcDriver = this.driver as IHasCapabilities; if (hcDriver != null && hcDriver.Capabilities.BrowserName == "internet explorer") { // 'this.driver.Url' does not work on IE...

Using Data Objects while E2E testing with Protractor

protractor,pageobjects,data-objects,e2e-testing,protractor-net

I use hashes for my data objects. Here's an example from my protractor_example code on GitHub. Given a data file: var UserData = function() { this.testUser = {'username': 'test', 'password': 'test'}; }; module.exports = new UserData(); Then the spec... describe ('non-angular login test', function() { var loginPage = require('../pages/nonAngularLoginPage.js'); var...