Skip to content

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

License

Notifications You must be signed in to change notification settings

pazone/actions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Actions

Библиотека для работы с пользовательскими действиями в браузере. Позволяет создавать различные действия, выполнять их через Selemium WebDriver, объединять их в тестовые сценарии, а также сериализовать тестовые сценарии в XML.

Maven Dependencies

Для использования библиотеки требуются следующие зависимости:

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

Getting Started

Создание последовательности действий:

    Actions actions = new Actions();
    actions.loadPage("http://www.yandex.ru").
            typeText("//input[@class='b-morda-search__input']", "Яндекс").
            click("//input[@class='b-form-button__input']");

Выполнение созданного сценария:

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

Запись в 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");

Чтение сериализованных сценариев из 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