Automation Question:
Tell us how do you get the width of the textbox?
Answer:
You can get the width of the textbox by using the following command:
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()
Previous Question | Next Question |
Please explain what is the hybrid framework? | Do you know how to mouse hover an element in Selenium? |