Last Updated On
Selenium Multiple Choice Questions – MCQ3
Answers
Answer 1
2) By using relative XPath locators
Answer 2
1) selectByValues()
To learn more about Select class, please refer to this tutorial – How to Select value from Drop down list or perform Multiple Selection Operations in WebDriver
Answer 3
2) WebDriver is an interface and RemoteWebDriver is a class.
Answer 4
1) Yes
Answer 5
2) SwitchTo ()
To know more about switching between windows in Selenium, please refer to this – Switch Window Commands in Selenium WebDriver
Answer 6
2) getScreenshotAs()
Answer 7
1) Yes. getFullPageScreenshotAs()
Answer 8
2) Apache POI
To learn more about reading excel in Selenium, please refer to this Reading Excel Data with Apache POI in Java
Answer 9
3) Headless
Answer 10
2) getWindowHandles()
To know more about switching between windows in Selenium, please refer to this – Switch Window Commands in Selenium WebDriver
Answer 11
2) WebElement
Answer 12
2) Actions class
To know more about the Action class, refer to this – Actions Class in Selenium WebDriver
Answer 13
1) NoSuchElementException
Answer 14
2) Right Click
Answer 15
1) a.contextClick().perform();
Answer 16
1) Executes the test without a graphical user interface
Answer 17
2) Return the title of the webpage displayed on the browser tab
Answer 18
2) InvalidCookieDomainException
Answer 19
1) InvalidElementStateException
Answer 20
4) Update the chrome driver.
Answer 21
2) NoSuchElementException
Answer 22
4) All of the above
Answer 23
1) DragAndDrop
To know more about the DragAndDrop in Action class, refer to this – Drag and Drop action in Selenium WebDriver
Answer 24
3) JavaScriptExecutor
The JavaScriptExecutor interface in Selenium allows for the execution of JavaScript commands directly within the context of the browser.
Answer 25
2) driver.switchTo().frame()
To learn more about the Frames in Selenium, refer to this – How to Switch Between Frames in Selenium WebDriver