We’re rewarding the question askers & reputations are being recalculated! Read more.

New answers tagged

2

The issue was because the chromedriver was not exiting after test execution completes. This makes the octopus script to hang [https://github.com/angular/protractor/issues/4690][1] So the work around was to add directconnect to the conf.js exports.config = { directConnect: true, Also i fixed the powershell script as: $process = Start-Process -FilePath ...


0

If I understand the question correctly, you only need to manually move to the element on test failure. In normal circumstances, the driver is automatically moving to any element it needs to interact with? I would suggest using error handling to execute the "scrollIntoView" code that is in your question. The Protractor FAQs show how you implement error ...


0

This is what the Actions class is for, there is a "moveToElement()" function in each implementation. This is more or less how it will look like in Protractor: browser.actions().mouseMove(element).click().perform(); This link explains the usage


1

No, You should NOT use static waits, it is a bad practice. Instead...Read below Disclaimer : I am an actual Protractor SDET, who has been using Protractor from last couple of years in actual Large Projects. Using Hard coded waits(static wait) along with every statement is an very bad practice for multiple reasons: It slows down the whole batch execution, ...


1

Maybe try browser.getProcessedConfig instead of getCapabilities, because I cant find that in the Protractor API documentation. Get the processed configuration object that is currently being run. This will contain the specs and capabilities properties of the current runner instance. https://www.protractortest.org/#/api?view=ProtractorBrowser....


3

Any WebDriver will use Json Wire Protocol to interact with the browser. The protocol defines 5 locator strategies: css selector, link text selector, partial link text selector, tag name, xpath. w3 Webdriver locator strategies As you can see there is no "Id". By.Id is sugar syntax added by Selenium and other WebDriver implementations. Under the hood it ...


Top 50 recent answers are included