https://github.com/yandex-qatools/actions
Java library which help to construct WebDriver actions chain in fluent-way and serialize and deserialize scenario to xml file
https://github.com/yandex-qatools/actions
Last synced: 5 months ago
JSON representation
Java library which help to construct WebDriver actions chain in fluent-way and serialize and deserialize scenario to xml file
- Host: GitHub
- URL: https://github.com/yandex-qatools/actions
- Owner: yandex-qatools
- License: other
- Created: 2013-08-27T11:31:42.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-09-27T15:42:45.000Z (about 10 years ago)
- Last Synced: 2025-04-08T15:49:37.099Z (6 months ago)
- Language: Java
- Homepage:
- Size: 252 KB
- Stars: 15
- Watchers: 7
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Actions
=======Library for user actions in the browser.
Allows you to create various actions to implement them through Selemium WebDriver,
combine them into test scenarios and serialize test scripts to XML.Maven Dependencies
------------------
To use library add the following dependencies:```xml
ru.yandex.qatools.actions
actions-builder
2.2
```Getting Started
---------------
Creating a sequence of actions:```java
Actions actions = new Actions();
actions.loadPage("http://www.yandex.ru").
typeText("//input[@class='b-morda-search__input']", "Яндекс").
click("//input[@class='b-form-button__input']");
```Execute the scenario:
```java
WebDriver driver = BrowserFactory.webdriver();
actions.build().perform(driver);
```
Record in XML:```java
Actions actions = new Actions();
actions.loadPage("http://www.yandex.ru").
typeText("//input[@class='b-morda-search__input']", "Яндекс").
click("//input[@class='b-form-button__input']");
actions.write("search-request-scenario.xml");
```Reading serialized scenarios from XML:
```java
Actions actions = new Actions();
actions.read("search-request-scenario.xml").
read("open-advanced-search-scenario.xml");
actions.build().perform(driver);
```