Automation Question:

Download Job Interview Questions and Answers PDF

Tell us how do you get the width of the textbox?

Automation Interview Question
Automation Interview Question

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()

Download Automation Interview Questions And Answers PDF

Previous QuestionNext Question
Please explain what is the hybrid framework?Do you know how to mouse hover an element in Selenium?