Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @FindBy(xpath= FinalLocators.userName)
- WebElement uname;
- @FindBy(xpath= FinalLocators.userpass)
- WebElement userpwd;
- sendkeys.uname("johndoe");
- sendkeys.userpwd("kitty");
- public static final String userName=//input[text()='username']
- public static final String userpass=//input[text()='password']
- public void sendData(String xpathKey){
- try{
- driver.findElement(By.xpath(OR.getProperty(xpathKey))).sendKeys("abc");
- logger.info("Found "+xpathKey);
- }catch(Exception e){
- logger.info("wait started for "+xpathKey);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement