Podcast
Questions and Answers
Which command is used to uniquely identify a web element within a web page?
Which command is used to uniquely identify a web element within a web page?
What does the Find Elements command do?
What does the Find Elements command do?
Which of the following is NOT a way to uniquely identify a web element within a web page?
Which of the following is NOT a way to uniquely identify a web element within a web page?
What does the syntax of the FindElement command in Selenium web driver look like?
What does the syntax of the FindElement command in Selenium web driver look like?
Signup and view all the answers
Which of the following can be used as a Locator Strategy in Selenium?
Which of the following can be used as a Locator Strategy in Selenium?
Signup and view all the answers
What does the By object in Selenium do?
What does the By object in Selenium do?
Signup and view all the answers
Which command returns an object of type list WebElement in Selenium?
Which command returns an object of type list WebElement in Selenium?
Signup and view all the answers
What is the purpose of Locator Value in Selenium?
What is the purpose of Locator Value in Selenium?
Signup and view all the answers
Which of the following is NOT a valid Locator Strategy in Selenium?
Which of the following is NOT a valid Locator Strategy in Selenium?
Signup and view all the answers
What does the FindElement command in Selenium return if the web element is not found?
What does the FindElement command in Selenium return if the web element is not found?
Signup and view all the answers
Which command in Selenium returns a list of web elements?
Which command in Selenium returns a list of web elements?
Signup and view all the answers
What is the purpose of the By object in Selenium?
What is the purpose of the By object in Selenium?
Signup and view all the answers
In the given code, what is the purpose of the line 'driver.findElement(By.linkText("Login"))'?
In the given code, what is the purpose of the line 'driver.findElement(By.linkText("Login"))'?
Signup and view all the answers
What is the purpose of the line 'driver.findElement(By.id("no")).click();' in the given code?
What is the purpose of the line 'driver.findElement(By.id("no")).click();' in the given code?
Signup and view all the answers
What does the line 'List elements = driver.findElements(By.name("name"));' in the given code do?
What does the line 'List elements = driver.findElements(By.name("name"));' in the given code do?
Signup and view all the answers
What is the purpose of the line 'driver.findElement(By.id("buttoncheck")).click();' in the given code?
What is the purpose of the line 'driver.findElement(By.id("buttoncheck")).click();' in the given code?
Signup and view all the answers
What is the purpose of the line 'driver.manage().window().maximize();' in the given code?
What is the purpose of the line 'driver.manage().window().maximize();' in the given code?
Signup and view all the answers
What is the purpose of the line 'driver.get("http://demo.guru99.com/test/ajax.html");' in the given code?
What is the purpose of the line 'driver.get("http://demo.guru99.com/test/ajax.html");' in the given code?
Signup and view all the answers
What is the purpose of the line 'System.setProperty("webdriver.chrome.driver", "X://chromedriver.exe");' in the given code?
What is the purpose of the line 'System.setProperty("webdriver.chrome.driver", "X://chromedriver.exe");' in the given code?
Signup and view all the answers
What is the purpose of the line 'System.out.println("Number of elements:" +elements.size());' in the given code?
What is the purpose of the line 'System.out.println("Number of elements:" +elements.size());' in the given code?
Signup and view all the answers