All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sitoolkit.tester.domain.appium.SpinOperation Maven / Gradle / Ivy

The newest version!
package org.sitoolkit.tester.domain.appium;

import org.openqa.selenium.WebElement;
import org.sitoolkit.tester.domain.selenium.SeleniumOperation;
import org.sitoolkit.tester.domain.test.Locator;
import org.sitoolkit.tester.domain.test.TestStep;

public class SpinOperation extends SeleniumOperation {

    @Override
    public void execute(TestStep testStep) {
        WebElement element = findElement(testStep.getLocator());
        element.click();
        
        switch (testStep.getDataType()) {
        default:
            findElement(Locator.build(testStep.getDataType(), testStep.getValue())).click();
            break;
        }
        info(testStep.getValue() + "の選択肢", "選択", element);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy