Answer the question
In order to leave comments, you need to log in
Intellij IDEA: how to store webpage locators in a separate class?
Hello.
I recently started learning about autotests using Intellij IDEA, Java. The question is, how to organize the storage of web page locators in a separate class? For example, in order not to search in the main test class (for example: LoginPageTest.java), for example, the Email input field by the method:
driver.findElementByXPath("//*[@id=\"text\"]").sendKeys("Текст", Keys.ENTER);
EMAILFILD.sendKeys("Текст",Keys.ENTER);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question