Automation Question:
Download Job Interview Questions and Answers PDF
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()
Download Automation Interview Questions And Answers
PDF
Previous Question | Next Question |
Please explain what is the hybrid framework? | Do you know how to mouse hover an element in Selenium? |