Worksheetsselenium mock test - 7/5/19 - 18:00
Total questions: 50
Worksheet time: 25mins
_____________ is a valid select statement to selects a value from a drop down element, in webdriver.
selectByValue()
selectByVisibleText()
selectByIndex()
All of these
What is the benefit of Selenium Webdriver as compared to Selenium RC
WebDriver is a compact object-oriented API
WebDriver drives the browser much more effectively
WebDriver overcomes the limitation of single-host origin policy
All of these
Which Selenium driver can be used for testing for Windows 10?
Edge Driver
Internet Explorer Driver
Both Edge Driver and Internet Explorer Driver
Depends upon AUT
Which of the following web element does, submit function is applicable, in Selenium WebDriver?
radio button
drop down
text box
All of these
Which exception is thrown when an error has occurred on the server side?
ErrorInResponseException
ErrorException
ErrorInException
ErrorResponseException
Which domain does web application carter to?
B2C or e-commerce
B2B or trading websites
Organizational internal needs
All of these
The number of pop-ups Selenium can manage, is
None of these
2.0
1.0
0.0
Which amongst the following statement holds true about Data Driven Framework?
Only supports Modular framework
Only supports Keyword Driven Framework
Yes, Selenium supports Data Driven Framework
No, Selenium supports Data Driven Framework
In WebDriver Selenium, which GET command is used to fetch the inner text of the element being specified?
getinnerText()
get_in_Text()
get_inner_Text()
getText()
Which of the following, will get all the cookies for the current domain?
Cookie method
Cookies method
getCookie method
getCookies method
Which CSS version is Selenium compatible with?
CSS 1.0, CSS 2.0 and CSS 3.0 selectors
CSS 1.0 and CSS 2.0
CSS 2.0 and CSS 3.0 selectors
CSS 1.0, CSS 2.0, CSS 3.0 and CSS 4.0 selectors
What is the file extension of Firefox plugins supported earlier by Firefox, on Windows?
exe
com
dll
None of these
ANT is a _____
Build Tool
Build Tools only for .NET
Build tool only for Java
A language
What is needed for development and testing for Python project with Selenium?
pip
setuptools
python driver
All of these
Which button on the toolbar starts the test?
Initiate
Go
Run
Start
*** DROPPED EMAIL ***
Which of the following options hold true according to the HTML code snippet?
12
34
driver.findElement(By.xpath("//table/tr[1]/td")).getText();
WebDriver statement is incorrect.
The above statement returns 1
The xpath query is incorrect
The above statement returns 3
Which of the following command pauses execution for adding an element in the page
assertElementPresent
pause
waitForElementPresent
None of these
Which Jenkins job type, is usually selected for integrating with Selenium?
Maven project
Free style project
External Job
None of these
What easily identifies an element
Attribute
CSS Selector
DOM
ID
What is Maven?
Tool for building Java projects
Build automation tool
software tool for project management
All of these
Which of the following is usually used to find an specific element on a page?
CSS Selector
XPath
ID
Name
What is the data type of parameter of getCookies method
list
char
string
None of these
Which label specify a globbing pattern pattern parameter for a Selenese command?
pattern
glob
regex
None
Which of the following Jenkins trigger format, will schedule your build every minute?
* * * * *
0 * * * *
* * * * 0
* * * * *
How many values separated by comma, does movementsString argument in dragAndDrop selenium action, take
1
2
3
4
Which amongst the following is not considered as an advantage of Selenium IDE?
Intelligent field selection will use IDs, names, or XPath as needed.
None of these
Support of Selenium user-extension .jr file
Auto complete for all common Selenium commands
How many parameters are accepted by an wait function of a custom action, used to extend Selenium
5 parameters
4 parameters
3 parameters
2 parameters
What is the application of the Selenium
Provides professional customer support
Test Reports are generated automatically
Comes with a built-in object repository
Cannot access elements outside of the web application under test
Which CSS selector will locate a element with ID ending with the the text userName?
input[id^='_userName']
input[id$='_userName']
input[id*='_userName']
None of these
Which type of Selenium calls are wrapped in wrapper method?
Logging functions
JSON Data exchange
I/O calls
frequently used selenium calls
__________ is referred as the scale for large test suites or the test suites that must be run in multiple environments.
Selenium-Grid
Selenium RC
Selenium WebDriver
Selenium NG
Select a value for browserName parameter in Selenium Grid configuration, which is invalid
internet explorer
opera
chrome
None of these
Which CSS selector will locate an element with ID starting with the text ctrl?
input[id^='ctrl']
input[id$='ctrl']
input[id*='ctrl']
None of these
Which Selenium RC component receives Selenium commands from test program
Selenium Server
AUT
Client Libraries
HTTP Proxy
What is the main advantage of linear framework of software testing?
Automation expertise is not necessary, as we are just using 'Record and Playback' feature.
Test scripts can be easily written and it will consume minimal time to write these scripts.
Understanding the flow is comparatively easy as the scripts are written in a linear manner.
All of these
Which of the following does not requires running Selenium-Server?
using Selenium-Grid
run tests to a remote machine
using Selenium-Grid and run tests to a remote machine
browser and tests will all run on the same machine
The echo command gives it's output to
Browser Window
Printer
Log File
Screen
Which parallel attribute option, is suitable to group all classes that are not thread safe, while parallelizing test runs in Selenium with TestNG?
methods
tests
classes
None of these
Which exception is thrown when an alert is not yet on the screen?
AlertPresentException
NoAlertException
NoAlertPresentException
None of these
What routes the selenese requests from the Test in Selenium grid?
Selenium hub
Selenium Remote Control
Selenium Server
Depends upon AUT
Which operating system is supported by AutoIT
Linux
Mac OS X
Windows
All of these
Which year did Selenium was launched?
Year 2002
Year 2003
Year 2004
Year 2005
What is Selenium RC?
It provides an API and library for each of its supports languages like Java, Ruby, Python, Perl and C#
It allows us to use a programming language for maximum flexibility and extensibility in developing test logic
Selenium RC starts up browsers(one at a time) and then runs commands we pass along from our tests
All of these
Which method is used to access cookies?
getCookie
Cookie
fetchCookie
Fetch
Which of the following commands is used to pause execution till the time specified element appears?
waitForElementPresent
waitForPagePresent
waitForTablePresent
waitForFieldPresent
Which of the following makes use of XPath?
XML Documents
MS-Word Documents
MS-Excel Documents
MS-Powerpoint Documents
The component of Selenium that can create customized test results is _________
WebDriver
Selenium RC
Selenium IDE
Selenium Grid
What kind of application is the Selenium IDE?
Firefox add-on
Web application
Windows application
None of these
Which programming language did the earliest version of Selenium was developed, in?
PHP
Python
JavaScript
C++
Which CSS selector will locate a element with ID containing the text userName?
input[id^='_userName']
input[id$='_userName']
input[id*='_userName']
None of these
