com.sdl.selenium.extjs4.window.XTool Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Testy Show documentation
Show all versions of Testy Show documentation
Automated Acceptance Testing. Selenium and Selenium WebDriver test framework for web applications.
(optimized for dynamic html, ExtJS, Bootstrap, complex UI, simple web applications/sites)
package com.sdl.selenium.extjs4.window;
import com.sdl.selenium.web.WebLocator;
public interface XTool {
WebLocator getView();
/**
* click on element with class "x-tool-" + suffix
*
* @param suffix element
* @return true | false
*/
default boolean clickOnTool(String suffix) {
WebLocator toolElement = getToolEl(suffix).setVisibility(true);
return toolElement.click();
}
default WebLocator getToolEl(String suffix) {
return new WebLocator(getView()).setClasses("x-tool-" + suffix);
}
default boolean close() {
return clickOnTool("close");
}
default boolean maximize() {
return clickOnTool("maximize");
}
default boolean restore() {
return clickOnTool("restore");
}
default boolean minimize() {
return clickOnTool("minimize");
}
default boolean toggle() {
return clickOnTool("toggle");
}
default boolean plus() {
return clickOnTool("plus");
}
default boolean collapse() {
return clickOnTool("collapse");
}
default boolean expand() {
return clickOnTool("expand");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy