Selenium WebDriver - How do you get the width of the textbox ?
Selenium WebDriver Interview question and Answers
(Continued from previous question...)
Selenium WebDriver - How do you get the width of the textbox ?
driver.findElement(By.xpath(“xpath of textbox ”)).getSize().getWidth(); driver.findElement(By.xpath(“xpath of textbox ”)).getSize().getHeight();
driver.findElement(By.xpath(“xpath of textbox ”)).getSize().getWidth();
driver.findElement(By.xpath(“xpath of textbox ”)).getSize().getHeight();
(Continued on next question...)
Other Interview Questions
|