Selenium WebDriver MCQs Solution | TCS Fresco Play
Disclaimer: The primary purpose of providing this solution is to assist and support anyone who are unable to complete these courses due to a technical issue or a lack of expertise. This website's information or data are solely for the purpose of knowledge and education.
Make an effort to understand these solutions and apply them to your Hands-On difficulties. (It is not advisable that copy and paste these solutions).
All Question of the MCQs Present Below for Ease Use Ctrl + F with the question name to find the Question. All the Best!
Course Path: DevOps/TESTING/Selenium WebDriver
Selenium WebDriver Hands-on Solution
on WebDriver
1.Which component of selenium support web broswers across OS ?
- Selenium IDE
- Selenium WebDriver
- All the options
- Selenium Generator
2.Which version on Friefox Browser need GeckoDriver ?
- Firefox version 50+
- Firefox version 45+
- Firefox version 47+
- Firefox version 40+
3.Which of the following language is used in selenium as a test language ?
- Java
- javascript
- All of these
- PHP
4.Which languages is Supported in Selenium ?
- All of these
- Python
- Java
- Ruby
5.Out the following which can test only the web application ?
- ALM
- All of these
- Selenium
- QTP
6.What does Ajax refers
- Accmulated Java and XML
- Asynchronous Javascript and XML
- Asynchronous Java and XML
- None of these
7.Selenium is Open-Source
- True
- False
8.What kind of application is Selenium IDE ?
- Desktop application
- None of these
- Firefox add-on
- Web application
9.Selenium IDE supports in ?
- All the options
- Chrome
- Firefox
- Internet Explorer
10.What does the term JSON expands on ?
- None of these
- Java object notation
- Javascript object notation
- Java object naming
11.Which Selenium components helps with Perfomance testing ?
- Selenium WebDriver
- Selenium IDE
- Selenium Grid
- Selenium RC
12.Between Selenium RC & Webdriver component Which is faster ?
- Selenium RC
- Selenium IDE
- Selenium WebDriver
- Selenium Grid
13.On what OS does Selenium works ?
- All the options
- Linux
- Windows
- Mac
14.Selenium 3.0 introduced in which year ?
- 2004
- 2016
- 2008
- 2006
1.Apache POI help to read Excel File ?
- True
- False
2.Maven POM refers - Page Object Model
- True
- False
3.Insteaded of running a full build package we can run with help of
- mvn clean install
- maven run
- maven clean install
- mvn run
4.Can we Integrate TestNG and Jenkins with Maven ?
- True
- False
5.Which of the following command is use to check Maven version ?
- mvn --version
- mvn version
- Maven - -version
- maven -version
6.Maven POM refers - Project Object Model
- True
- False
1.TestNG works with Annotations and annotation can be represented with symbol
- #
- @
- $
- *
2.What are the Annotations available In Testng?
- @AfterSCript
- @BeforeScript
- @Test
- @Script
3.In TestNG “NG” Stands for Next Generation
- False
- True
4.@Test(description = “test method”) It is a description for a method ?
- True
- False
5.JUnit and Nunit does has lots more functionality than TestNG ?
- True
- False
1.Which of the following clears all selected entries in Selenium Webdriver?
- deselect.All()
- deselectAll()
- dselectAll()
- dselect.All()
2.Implicit wait time is applied to all elements in your code while Explicit waits are applied only to a single element for a specified amount of time.
- True
- False
3.Which command takes you forward by one page on the browser’s history?
- Navigate().forward()
- Navigate.forward()
- navigate.forward()
- Navigate.forward
- navigate.forward
4.Which is not a WebElement Method?
- getText()
- sendKeys()
- getTagName()
- size()
5.What are the utility of the action commands?
- are commands that directly interact with page elements.
- are command that verify if a certain condition is met
- are commands that allow you to store values to a variable
- All of the options
6.WebDriverWait wait = new WebDriverWait(driver, 30);XXXXwait.until(ExpectedConditions.presenceOfElementLocated(by));XXXXThe above wait condition is considered an:
- Implicit wait
- None of these
- Explicit wait
7.Which of the following method performs a context-click at the mouse location?
- Click_Context
- context.Click()
- contextClick()
- context_Click()
8.It is a valid Selenium Command “driver.navigate().refresh ();”?
- True
- False
9.What is the unit of movements String argument in Drag and Drop Selenium action?
- pixel
- inches
- cm
- Percentage
10.In webdriver ” selectAllOptions() “ is a valid command.
- False
- True
1.Data Driven Testing methodology in automated testing to test only a single set of Test Data.
- True
- False
2.Can we use Headless Browser in CrossBrowser Testing
- True
- False
3.In POM both “@FindBy” & “how” annotations can be used in same class file
- True
- False
4.Do screenshot method created with help of driver object ?
- False
- True
5.These annotations are part of page factory method (“@FindBy” & “how”)
- False
- True
6.In webdriver, what is the return value of sendKeys function
- bool
- string
- char
- None of these
7.What are the types of Page Object Model
- Normal POM Approach
- Page Factory Method
- Both the options
- None of these
8.Data Driven Testing requires Apache Poi Dependency ?
- True
- False
9.In CrossBrowser to run prallel Tesing we need triger “.java” file
- True
- False
10.Page Object Model mainly consists of
- Pages folder
- utility folder
- All the options
- Tests folder
1.Which of these finds the element based on the CSS Selector engine with webdriver ?
- By.cssSelection
- By.cssSelector
- By.cssSelect
- By.cssSelected
2.What are the navigation methods listed below.
- all the above
- back()
- forward()
- to()
3.What is the difference between “/” and “//” in Xpath?
- “/” is used to create XPath with a relative path and “//” is used to create XPath with an absolute path
- “/” is used to create XPath with an absolute path and “//” is used to create XPath with a relative path
4.What document type uses Xpath
- MS-Powerpoint documents
- MS-Word documents
- MS-Excel documents
- XML documents
5.What is the unit of movements String argument in drag&drop selenium action
- Percentage
- cm
- pixel
- inches
6.What is the default page load strategy followed by geckodriver ?
- interactive
- normal
- None of these
- complete
7.Can Selenium interact with hidden elements ?
- False
- True
8.Which of the following ends with same as Xpath ends with
- ^=
- *=
- &=
- $=
9.Selenium WebDriver not supoort
- Recording
- Programming
- Batch Testing
- Text Execution
10.Taking Screenshot is possiable with HtmlUnit Driver ?
- False
- True
11.Which of the following language bindings are not developed by SeleniumHQ
- Perl
- Python
- Ruby
- JavaScript(node)
12.Which of the following applications can interact with selenium ?
- Silverlight based application
- DOM based application
- None of these
- Flash based application
13.What is the correct syntax to instantiate a FireFox session
- WebDriver driver = new GeckoDriver()
- WebDriver driver = new firefoxDriver()
- WebDriver driver = new geckoDriver()
- WebDriver driver = new FirefoxDriver()
14.What is the correct syntax to instantiate a Chrome session
- WebDriver driver = new chrome()
- WebDriver driver = new chromeDriver()
- WebDriver driver = new Driverchrome()
- WebDriver driver = new ChromeDriver()
15.Which of the following programming language is not supported by selenium webdriver ?
- ASP.NET
- None of these
- JavaScript
- Python
16.Which of the following options are valid ways to access an element by id?
- driver.findElement(By.xpath("//*[id='plans']"))
- driver.findElement(By.xpath("//*[@id='plans']"))
- None of these
- driver.findElement(By.xpath("//*[@id=”plans”]"))
17.Which of the following programming language is supported by selenium webdriver ?
- ASP
- SQL
- Cobol
- Perl
18.What is the WebElement method used to get the BackGroud Color of an Element displayed in the WebPage.
- getCssText(“background-color”)
- getCssValue(“background-color”)
- getCss(“color”)
- getCssValue(“bg-color”)
19.Which tool is appropriate to set up a Selenium 2.0 Java project
- Maven
- pip
- Depends upon the project
- Signed dlls
20.In webdriver selenium _______ component helps to run multiple tests simultaneously in diffrent browsers & platforms.
- Selenium Grid
- Selenium RC
- Selenium IDE
- Selenium WebDriver
21.What is the proper command to navigate to (“https://apps.fresco.me”)?
- driver.navigate().to(“https://apps.fresco.me”)
- driver.navigate(“https://apps.fresco.me”)
- driver.navigate().toUrl(“https://apps.fresco.me”)
- driver.navigate.to()(“https://apps.fresco.me”)
22.What is the main transport mechanism used by WebDriver
- AJAX
- JSON
- HTTP
- Websocket
If you have any queries, please feel free to ask on the comment section.If you want MCQs and Hands-On solutions for any courses, Please feel free to ask on the comment section too.Please share and support our page!
2 comments
True
False
Answer: 2)False -incorrect