New answers tagged page-factory
0
Try to add wait before interacting with your element.
E.g.
NewOrderLink.waitForVisible(1000);
clickButton(NewOrderLink);
Because on your first method, you have prior steps. Unlike in second step that you call it right away.
Top 50 recent answers are included
Related Tags
page-factory × 30selenium-webdriver × 25
page-objects × 16
java × 12
automated-testing × 7
testng × 6
selenium3 × 4
c# × 3
xpath × 2
data-driven × 2
pom × 2
selenium2 × 1
browser-automation × 1
test-automation-framework × 1
appium × 1
cucumber × 1
eclipse × 1
css-selectors × 1