Professional Documents
Culture Documents
TRUE FALSE
3. Following is not the type of Selenium.
Yes No
9. Which of the following we use to check the properties of a web page?
TRUE FALSE
11. We can set multiple breakpoints in Selenium IDE.Justify
Yes No
12. The following elements in your CLASSPATH to run your Junit tests?
Javascript and
Java and C# Ruby and Python Java C# and Ruby
18. The command to access the alert is
TRUE FALSE
20. Web Driver allows the implementation of listeners.Justify?
TRUE FALSE
21. TestNg will execute the tests in
Flex Pilot Whit Code Plexer Test Runner Test Suite Runner
25. storeFooPresent(variable) does
stores the text of the Stores the text of stores the text
pop-up in a variable and pop-up into some of the pop-up in
returns true or false default variable a variable Both a and b
26. Does selenium IDE support looping?
TRUE FALSE
27. Selenium will show some security notifications when handling
Virtual Machines Remote Web Driver Both a and b None of the above
31. IS Selenium Web Driver ThreadSafe?
Yes No
32. A ------ is a mechanism that stores all the locators for a test suite in one place for easy
modification
Selenium Web Driver Selenium Grid Selenium Core None of the above
35. The time to wait for a particular element is in terms of
Modify the
scripts
according to Viewing the
Record the scripts using thetesting results in the
Selenium IDE Run the test needs. format specified.
37. What is Selenium's recording language?
TRUE FALSE
39. Selenium automates
Many actions are not All the actions IDE doesnot record and All of the above
performed are we have to do
recorded by IDE and have recorded by complete scripting
to be manually entered. IDE. manually.
42. The following is used to run the exported tests in any browser and any platform?
Selenium Remote
Selenium 2 Selenium Core Control None of the above
43. Which of the following uses native JavaScript calls.
Selenium Web
Selenium Core Selenium Grid SIDE Driver
44. Selenium Core TestRunner is used to
java -jar
selenium-
server.jar -
java -jar selenium- java -jar selenium- userExtensions Start
server.jar user- server.jar - user- SeleniumServer
extensions.js userExtensions.js extensions.js User-extensions.js
52. How to run Selenium IDE test suite with user extensions using Selenium Remote Control?
java -jar
selenium-
server.jar -
userExtensions java -jar selenium-
java -jar selenium- user- server.jar -
server.jar user- extensions.js - userExtensions
java -jar selenium- extensions.js - htmlSuite user-extensions.js
server.jar - htmlSuite "*<browser>" -htmlSuite
userExtensions user- "*<browser>" "<base URL>" "*<browser>"
extensions.js -htmlSuite "<base URL>" "<Selenium test "<base URL>"
"*<browser>" "<Selenium test suite suite file>" "<Selenium test
"<Selenium test suite file>" "<results log "<results log suite file>"
file>" "<results log file>" - file>" -timeout file>" -timeout "<results log file>"
timeout <millise> <millise> <millise> -timeout <millise>
53. If the default port of selenium is busy then which port you use?
Need to define
our own port as
Need to create our java -jar
We need to stop till the own port from where SeleniumServer.ja
port gets free the script runs r -port 1111 None of the above
54. When to use proxy injection mode?
Selenium Remote
Selenium Web Driver Control Selenium Grid Selenium IDE
56. How do you edit the recorded command in IDE?
By selecting the
command and choosing
the desired value from Edit->Recording No optionis
drop-down. Mode available Both a and b
57. What are the three major components of Selenium IDE?
Selenium Remote
Selenium2 Selenium Core SIDE Control
61. The following test engine is used for Java programming language?
Execute .JS
<selenium-
Exceute Js API getEval API server.jar> None of the above
64. Multi mode is the default behaviour for?
the -
the -browserSideLog the -browserLog browsersidelogs
command command command All of the above
67. The main restriction of Selenium is
Same Origin
Same Origin Policy Policy for Security
Same Origin Policy for all browsers security issues Restrictions
68. The method that was used by selenium initially to avoid the Same Origin Policy was
Enable Origin
Enable Same Origin Policy for all
Policy Proxy Injection browsers None of the above
69. Mechanism that stores all the locators for a test suite in one place for easy modification when
identifiers or paths to UI elemets changes in the AUT is?
Suite UI
elements
Locator Suite Details Ui Map locators None of the above
70. Rapid prototyping tool is
Command,
Table and Source Table and Target Target, Input None of the above
73. Toggle Breakpoint is used to
Actions,
Assertions, Actions Accessors and
Command, Target, Value and Ino\puts Assertions All of the above
75. The three modes in which we can use the Selenium Assertions are
Actions,
Assertions, Actions Accessors and
Command, Target, Value and Ino\puts Assertions All of the above
76. The three modes in which we can use the Selenium Assertions are
Assert, assertAssertions,
Assert, Verify and Assery, Verify and VerifyAssertion VerifyAssertions
waitFor Assertions and waitFor and waitFor
77. Following is not the most commonly used Selenium Command?
Locator Selectin
Locator Strategy Locator Guidance Criteria Locator Assistance
82. java.lang.RuntimeException: Could not contact Selenium Server; have you started it? Error
means
IDE directly
allows you to
IDE provides an slow and fast
IDE provides a slider with option with slow and pointers to
slow and fast pointers to fast pointers to control the
control the speed of control the speed of speed of
execution. execution. execution. None of the above
87. Reference Section of Selenium IDE is used for?
css=input#s
var1
echo
${var1} .
The above code will do?
To check the
Used to store the result Print value in stored value in To check the value
of an evaluation Selenium Ide Selenium IDE of stored text
90. How can we change the test recorded in Xpath to css locator?
Yes No
99. During the execution of the tests I see two windows , one on the test application and the other
showing commands getting executed.How to limit to a single window?
Recovery Scenario
method Exception Handling Still in progress None of the above
101. Difference between single and double slash in Xpath
Selenium Web
Selenium IDE Selenium Core Selenium Grid Driver
105. How do you run selenium commands in Slow motion in Selenium RC?
The @Test
The @Before public void The @After public public void
method() void method() method() All of the above
107. Can we include Selenium RC testcases using XMl in TestNG.Justify?
TRUE FALSE
108. What is selenium server default port number?
TRUE FALSE
112. How to execute the set of testscripts continuosly in Junit
Parameterization Prioritizing the tests Both a and b None of the above
113. The plug in for Selenium Ide that stores the screen shots automatically on script failure
is
Conditional
Looping Constructs Statements User Extensions All of the above
115. The Selenium command to print the two variables in the same line is
TRUE FALSE
119. The following framework is an instance of the xUnit architecture for unit testing
frameworks
Yes No
121. How do you run the Junit tests from the command line?
import
import org.junit.*; import junit.*; package.junit.*; None of the above
123. the syntax to compile a Junit Test Class is?
All Failed
First Failed Assertions Last Failed Assertions Assertions None of the above
128. The Exception: "No runnable methods" occurs when
Passes , if the
method does Passes, if the
Fails, if the method does Fails, if the method not throw the method throws
not throw the named throws the named named the named
exception. exception. exception. exception.
132. The Assert method of junit allows you to specify
The Expected
The error message The Actual Result Result All of the above
133. By setting up the instances of object which can be used and configured in your test
methods, Junit can b e
Compiler-time
and
Information for the deployment-
compiler Runtime processing time processing All of the above
135. Junit comes in built with Eclipse. Justify?
TRUE FALSE
136. What is the name of the package that you use for Junit
import
import org.junit.*; import junit.*; package.junit.*; None of the above
137. The following elements in your CLASSPATH to run your Junit tests?
Yes No
143. Junit generates the HTML results report using
TRUE FALSE
147. What is the order of fastest browser implementation for Web Driver?
HTMLUnitDriver,
FFDriver and IEDRiver only on
ChromeDriver on all OS Windows Both a and b None of the above
150. What is the difference between Web Driver and Web Driverbacked in selenium?
151. Native Events are to be enabled to perform the following in Selenium Web Driver
InternetExplorer
HTMLUnit Driver Driver Mac Driver Firefox Driver
157. Client and Server are the components of
Yes No
162. Database testing in Selenium is supported by
The
The @BeforeClass The @AfterClass @DataProvider The @Test
170. The annotation whose returned objects are used by TestNG as Test Classes is
The
The @Factory The @Listener @DataProvider The @Parameters
171. The annotation which is the attribute for another annotation is
preserveTest-
preserve-order test=order Order dependsOnMethods
174. TestNG can be invoked in
2)with ant
Through
command line
Through command line Through command switches in
switches with atleast one line switches with all combination
xml file the xml files present with ANT All of the above
176. The arguments of the option -configfailureploicy are
directory,methods
Skip and Continue and classes listeners methodSelectors
177. C:> more c:\command.txt
-d test-output testng.xml
java.lang.Method java.lang.Method
java.lang.reflect.Method java.lang.reflect.Method as the only as the first
as first parameter for as the only parameter parameter for parameter for
@DataProvider for @DataProvider @DataProvider @DataProvider
179. The @DataProvider(name = "dp")
System.out.println(m.getName());
1 11 10 100
181. TestNG allows you to specify the dependencies in
TRUE FALSE
185. The methods are marked as Skip rather than Fail when
A method 186.
depended upon A method
A method depended fails and you depended upon
A method depended upon Skips and you have a hard fails and you have
upon Skips and you have have a soft dependency on a soft dependency
hard dependency on it dependency on it it on it 186.
The
The @DynamicTest The @Factory @DataProvider
annotation annotation annotation The @Dynamic
188. How to to create a test method that will access a page on a Web site several times, and
you want to invoke it with different values?
The
The @Listener The @Modifier @TestNGModifier None of the above
191. Name the file that Is created to store the results of the test run?
The output-
The index.htm file The index.html file report file Both 1 and 3
192. Does TestNg support dependency in XML.Justify?
TRUE FALSE
193. The following is not the core concept of AnT?
ANT MAVEN
195. Ant address the deployment problems of java project such as
Yes No
198. The command that determines which POM contains missing transitive dependency is
run "mvn -X" run "maven -x" run "Maven -x" All of the above
199. MOJO stands for
Using the
instructions in
the Ant
Using Ant Plugin Using AntRun plugin documentation All of the above
201. Maven Repository types
ant launch-hub
ant launch-hub ant launch -hub Selenium_Grid None of the above
204. http://nameofmachine:4444/console means
– –
–port:DportNumber –Dport:portNumber Dport:=portNumber Dport=portNumber
206. –Denvironment=target means
Specifying which
Specifying which environment
Specifying which browser environment you you would like
you would like the would like the the remote
remote control to be remote control to be control to be
registered with registered with run with Only 1 and 3
207. What does grid2 mean
Robot
Selenium Core Selenium Grid Selenium TestNG Framework Framework
209. The components of Selenium that are used for recording are
Object Factory Page Object Designs Page Factory Any of the above
213. Does Selenium Web Driver be able to handle requests for IE / Chrome without
additional modifications.Justify?
TRUE FALSE
214. The Advance User Intercations in Selenium Web Driver require --------------- to be
anabled
User Events Native Language API's Native Events Any of the above
215. How does web driver support JavaScript alerts and prompts
Using Native
Using Alert API's Using Alerts Api's None of the above
216. File Uploads in Selenium is supported by
Flowchart
Model Based Page Object Designs Model None of the above
218. The purpose of UI Map is to make ----------- easier.
Test Script
Test script enhancement Test Script Hosting Management TestScript Creation
219. The best way to locate and verify an Ajax element is to use
Selenium Web
Selenium IDE Selenium RC Selenium Grid Driver
224. The type of Selenium that is less prone to error and browser configuration is
Selenium Web
Selenium IDE Selenium RC Driver Selenium Grid
227. Selenium Core is bounded to
2 3 8 5
229. Which of the following is not the section of Selenium Core
Automated Test
HTA mode. Selenium Core Mode Mode None of the above
231. HTA Mode of Selenium Core works on the ---------- browser
Internet
Firefox Google Chrome Explorer Safari
232. The annotation used by Page Object Design Pattern for object identification is
Using Sikuli Using Proxy Settings Using AutoIT None of the above
233. What was the need for Selenium EasyAutomate?
Automation
Selenium requires users scripts & test
to know about any one of specifications
the programming Selenium does not are kept as
language like java, ruby, provide testcase different test
python etc. PASS/FAIL status. artifacts All of the above
234. The following can be embedded into the Test Specification in Selenium EasyAutomate:
Automation
Automation Automation Testcase
Automation Keywords Commands Scripts Specifications
235. The parameters used to define the scripting environment are
EasyAuotmate Video
Xuggle Support WebEx None of the above
237. Image verification is done through
Application
Application Under Under Test and Application Under
Application Under Test Test and Test Module Under Test and Software
and Test Environment Environment Test Release
239. Selenium EasyAutomate framework loads the test specification from excel using
Both
No Difference. first one opens the browser given and a
Both will open the second one opens the given browser and
browser given. with boolean value 0 b None of the above
242. Maximum time to wait for a text is configured as what in the cofig file?
SelectWindow By
Drag and Drop Select Select Window partial
245. The command for which there is no wait time is
TextPresent="status
ISTextPresent VerifyTextPresent " None of the above
248. The keyword used to store the current browsers title into a variable given is
Throws Error
Local Host 128.0.0.1 Message None of the above
265. The parameter that needs to be updated for changing the browser in which the tests are
to be done is
Windows and
Windows Mac Mac Linux
269. EasyAutomate Selenium supports runtime validations.Justify? TRUE
270. The languages supported in Selenium EasyAutomate are
APPLICATION_UNDER_TES
MODULE_UNDER_TEST T BROWSER_TYPE None of the above
275. Selenium easyAutomate supports executing the test scripts im multiple browsers
without modifying the scripts.Justify? TRUE
276. The easyAutomate need to be restarted after the Scripting Environment Is
loaded.Justify? TRUE
277. The keyword used to pause the execution for a specified time is
TYPEONFOCUSSEDELEMEN DOUBLECLICKIMAG
T CLICKIMAGE E None of the above
279. The following two are displayed at the bottom right of the screen when we are
automating the testcases in easyAutomate Selenium?
BROWSER_TYPE
AUT and Browser and Browser
AUT and Module Name Name Name None of the above
280. We can import Selenium IDE Commands to our EasyAutomate.Justify? TRUE
281. The following is used to execute the Selenium script in multiple browsers at the same
time
Test
Specification
Scripter Test Sequence Editor Editor Test Executor
282. The execution mode where the tests configured in the TSQ shall be started in selected
browsers in parallelis
Application
Application Under Under Test and
Application Under Test Test and Software Module Under
and Test Environment Release Test None of the above
288. The command used to launch the Selenium EasyAutomate IDE is
2 3 4 6
290. What is the Function of the keyword "CLEARFORMELEMENT"?
OPEN
OPEN SITE_URL, "1" OPEN SITE_URL "SITE_URL" "1". Any of the above
293. Which keywords can have unlimited parameters?
4 5 6 7
298. Give the Syntax for typing a text?
TYPEKEYS
TYPEKEYS "path" "text". TYPEKEYS "PATH" "TEXT" None of the above
299. How do you make Firefox as Active Browser?
UNCHECK
"//input[@type='checkbox'] UNCHECK
" //input[@type='checkbox']" "checkbox" "1" Any of the above
302. What is the use of "STOREFORMELEMENT" keyword?
By using
"REFRESH
By using "REFRESH" By using "REFRESH =WINDOW
keyword. CURRENT WINDOW" NAME" None of the above
304. What is the parameter for "WAITFORPAGELOAD"
0 1 2 3
305. what is "ASSERTVARWITHELEMENTVALUE" keyword?
Compares the
input element
Any form input element's Gets the input and variable
value could be compared element value with values and
with the given variable's the value given in the returns the
value. variable result All of the above
306. What is "STOREPROMPTTEXT" keyword?
Captures the
Captures the prompt message
Captures the prompt prompt message displayed by
message displayed by displayed by Selenium Easy
javascript into the Shows the captured groovy script Automate into the
variable. message as a variable into the variable variable
307. Give the Syntax for "DELAY"?
DELAY
DELAY "time" "KNOWN_DELAY" "1" Both a and b None of the above
308. How many parameters are there for the keyword "DOUBLECLICK"?
1 2 3 4
309. What is "storeXpathcount" keyword?
Closes the
Selenium
Closes the default Closes the current Closes all the EasyAutomate
browser. browser browsers window
313. What is "WAITFORTEXT" keyword?
STOREPROMPTT
STOREPROMPTT EXT "parameter" STOREPROMPTTEXT="param STOREPROMPTTEXT="param
EXT "parameter" "1" eter" eter" "1"
315. How many parameters can be passed for the keyword "TYPE"?
3 4 1 2
316. Explain the function of "DELAY" keyword?
2 1 4 0
318. What is the function of "ASSERTELEMENTVALUE" ?
Asserts the
Asserts whether the given element
given element's value value with the
Asserts whether the is same as the given value given in Asserts all the
given element's value is element value and the element's values
same as the value given returns the value as configuration and returns the
or not. well file values
319. What is the use of "WAITFORCONFIRMATION" keyword?
Captures the
alert message
Captures the alert displayed by
message displayed by Uses the alert() groovyscript Captures all the
javascript into the function to capture into the alert texts into a
variable. the text message variable. varaible
322. What is "WAITFORALERT" keyword?
Reports the given text It uses the Groovy It logs the text All of the above
into the excel comments
column for the running script to display the into the
test step. runtime values execution log.
324. How will you use "STOREALERTTEXT" keyword?
Simulates the
Simulates the page page down only
down only if the if the current
Simulates page down in current browser is browser is in
the current browser active forground All of the above
328.