Selenium Interview Question-5
57) What are the two modes of views in Selenium IDE ?
Either Selenium IDE can be opened as a pop up window or in side
bar
58) In selenium IDE what are the element locators
that can be used to locate elements on web page?
In selenium there are mainly 4 locators that are used
·
X-path locators
·
Css locators
·
Html id
·
Html name
59) In Selenium IDE how you can generate random
numbers and dates for test data ?
In Selenium IDE you can generate random numbers by using Java
Script
type
css=input#s
javascript{Math.random()}
And for
type
css=input#s
javascript{new Date()}
60) How you can convert any Selenium IDE tests from
Selenese to another language?
You can use the format option of Selenium IDE to convert tests
into another programming language
61) Using Selenium IDE is it possible to get data
from a particular html table cell ?
You can use the “storeTable” command
Example store text from cell 0,2 from an html table
storeTable
Css=#table 0.2
textFromCell
62) Explain what can cause a Selenium IDE test to
fail?
·
When a locator has changed and Selenium IDE cannot locate the
element
·
When element Selenium IDE waiting to access did not appear on
the web page and the operation timed out
·
When element Selenium IDE was trying to access was not created
63) Explain how you can debug the tests in Selenium
IDE ?
·
Insert a break point from the location where you want to execute
step by step
·
Run the test case
·
At the given break point execution will be paused
·
To continues with the next step click on the Blue button
·
To run commands at a time click on run button
64) From Selenium IDE how you can execute a single
line?
From Selenium IDE single line command can be executed in two
ways
·
Select “Execute this command” by right clicking on the command
in Selenium IDE
·
Press “X” key on the keyboard after selecting the command in
Selenium IDE
65) In which format does source view shows your
script in Selenium IDE ?
In Selenium IDE source view shows your script in XML format
66) Explain how you can insert a start point in
Selenium IDE?
In two ways selenium IDE can be set
·
Press “S” key on the keyboard and select the command in Selenium
IDE
In Seleniun IDE right click on the command and the selec
Comments
Post a Comment