Skip to content

Instantly share code, notes, and snippets.

d:>java -cp ".\lib\*;.\bin\;" org.testng.TestNG testng.xml
[TestNG] Running:
D:\testng.xml
test2_1
test2_2
test2_3
test3_1
test3_2
test3_3
public class Google extends BasePage {
public class GoogleSearchForm extends Form {
public Button searchInGoogle = new Button(this, "Поиск в Google");
public TextField searchTextbox = new TextField(this);
public GoogleSearchForm(BasePage page) {
super(page);
}
}
@vmaxim
vmaxim / gist:4753123
Last active December 12, 2015 09:39
public class Link extends BaseElement {
public Link(BasePage _page, String linkText) {
super(_page, LocatorFactory.create(
LocatorStrategy.linkText, linkText));
}
public Link(BaseElement _parentElement, String linkText) {
super(_parentElement, LocatorFactory.create(
LocatorStrategy.linkText, linkText));