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?
- Find Elements
- By Object
- Locator Strategy
- Find Element (correct)
What does the Find Elements command do?
What does the Find Elements command do?
- Returns a list of web elements (correct)
- Uniquely identifies a web element
- Locates the web page
- Identifies the By object
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?
- Value (correct)
- ID
- Class Name
- Name
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?
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?
What does the By object in Selenium do?
What does the By object in Selenium do?
Which command returns an object of type list WebElement in Selenium?
Which command returns an object of type list WebElement in Selenium?
What is the purpose of Locator Value in Selenium?
What is the purpose of Locator Value in Selenium?
Which of the following is NOT a valid Locator Strategy in Selenium?
Which of the following is NOT a valid Locator Strategy in Selenium?
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?
Which command in Selenium returns a list of web elements?
Which command in Selenium returns a list of web elements?
What is the purpose of the By object in Selenium?
What is the purpose of the By object in Selenium?
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"))'?
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?
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?
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?
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?
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?
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?
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?