I am new to Selenium. I just want to send keys to a username text box and send a tab key both at a time so that the text box can check for the availability of username.
Here is the code:
driver.findElement(By.xpath("//label[text()='User Name:']/following::div/input")).sendKeys("UserName");
driver.findElement(By.xpath("//label[text()='User Name:']/following::div/input")).sendKeys(Keys.TAB);
But this one is not working.