Skip to content

yandex-qatools/actions

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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:

    <dependency>
        <groupId>ru.yandex.qatools.actions</groupId>
        <artifactId>actions-builder</artifactId>
        <version>2.2</version>
    </dependency>

Getting Started

Creating a sequence of actions:

    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:

    WebDriver driver = BrowserFactory.webdriver();
    actions.build().perform(driver);

Record in XML:

    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:

    Actions actions = new Actions();
    actions.read("search-request-scenario.xml").
            read("open-advanced-search-scenario.xml");
    actions.build().perform(driver);

About

Java library which help to construct WebDriver actions chain in fluent-way and serialize and deserialize scenario to xml file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages