An open API service indexing awesome lists of open source software.

https://github.com/anazalu/tdl-cucumber-one


https://github.com/anazalu/tdl-cucumber-one

cucumber-java gherkin selenium-webdriver testng xpath

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          

# tdl-cucumber-one
A test project to try BDD. Here, on top of the usual Selenium and TestNG, we use Cucumber. Feature files are written in Gherkin, step definitions are in Java.
## Website under test
www.automationexercise.com
## Useful commands
### Running XPath in the Chrome console
```
document.evaluate("//h2[contains(., 'All Products')]", document, null, XPathResult.ANY_TYPE, null).iterateNext()
document.evaluate("//div[@class='productinfo text-center'][p='Blue Top']/a[@class='btn btn-default add-to-cart']", document, null, XPathResult.ANY_TYPE, null).iterateNext()
```