Selenium Quiz (Set 3) Selenium (Set 3) 1 / 10 Which method is used to scroll a web page to a specific element's location in Selenium? scrollToElement() scrollIntoView() scrollTo() scrollBy() 2 / 10 What is the primary purpose of the 'Actions' class in Selenium WebDriver? To simulate user interactions like mouse movements and clicks To manage browser navigation To create and manage web elements To handle multiple browser windows 3 / 10 What is the benefit of using 'TestNG' over the default testing framework in Selenium? TestNG does not require any additional configuration TestNG has a simpler syntax for writing test cases TestNG provides more built-in web element locators TestNG offers better support for parallel test execution 4 / 10 In Selenium WebDriver, what is the purpose of the 'clear' method? To delete the current browser session To clear the text content of an input field To close the current browser window To refresh the web page 5 / 10 What is the purpose of the 'isSelected' method for checkboxes and radio buttons in Selenium? To select the checkbox or radio button To unselect the checkbox or radio button To check if the checkbox or radio button is selected To verify the presence of the element 6 / 10 Which method is used to take screenshots of the current web page in Selenium WebDriver? captureScreenshot() takeScreenshot() saveScreenshot() getScreenshot() 7 / 10 What does 'XPath' stand for in Selenium? Extensible Protocol for HTML Xamarin Platform for Testing XQuery and Parsing Tools XML Path Language 8 / 10 Which method is used to retrieve the URL of the current page in Selenium WebDriver? getCurrentPageUrl() getCurrentUrl() getPageURL() getURL() 9 / 10 How can you simulate keyboard actions like pressing the 'Enter' key using Selenium WebDriver? sendKeys(Keys.ENTER) sendKeys(Keys.RETURN) sendKeys(Key.ENTER) sendKeys(Key.RETURN) 10 / 10 What is the purpose of the 'getAttribute' method in Selenium? To retrieve the text content of an element To get the value of a specific attribute of an element To click on an element To check if an element is displayed Your score isThe average score is 0% 0% Restart quiz