You are on page 1of 12

For Free Demo Ph:+1 (646) 880-9474

For Details : Folkstrain.com


1. How can you notice an element using
Selenium?
In Selenium each object or management in a website
is referred as elements, there are completely different
ways in which to search out part in a very website
they're
1.ID
5.Attribute
2.Name 6. Linktext
3.Tag 7. PartialLink Text
4.CSS 8. Xpath etc
For Free Demo Ph:+1 (646) 880-9474
For Details : Folkstrain.com
2. What is the difference between sort keys and
sort commands?
Typekeys() will trigger JavaScript event in most of the cases
whereas .type () wont. Type key populates the price attribute


mistreatment JavaScript whereas .typekeys() emulates like
actual user typing.

For Free Demo Ph:+1 (646) 880-9474


For Details : Folkstrain.com
3.What are the benefits of Selenium?
It supports C#, PHP, Java, Perl, Python
It supports different OS like Windows, Linux and Mac
OS
It has got powerful methods to find parts (Xpath,
DOM, and CSS)
It has highly

developer community supported by
Google.

For Free Demo Ph:+1 (646) 880-9474


For Details : Folkstrain.com
4.What are the four parameter you have
to pass in Selenium?
Four parameters that you need to pass in Selenium are:
Host
Port Number
Browser
URL

For Free Demo Ph:+1 (646) 880-9474


For Details : Folkstrain.com
5. What is Object Repository?
An object repository is AN essential entity in any UI
automations that permits a checker to store all object
that may be employed in the scripts in one or a lot of


centralized locations instead of scattered everywhere
the test scripts.

For Free Demo Ph:+1 (646) 880-9474


For Details : Folkstrain.com
6.Explain however Selenium Grid works?
Selenium Grid sent the tests to the hub. These tests
are redirected to element Webdriver, which launch
the browser and run the check. With entire test suite,


it allows for running tests in parallel.

For Free Demo Ph:+1 (646) 880-9474


For Details : Folkstrain.com
7. Mention 5 completely different
exceptions you had in element internet
driver?
The 5 completely different exceptions you had in
Selenium web drivers are


WebDriverException
NoAlertPresentException
NoSuchWindowException
NoSuchElementException
TimeoutException
For Free Demo Ph:+1 (646) 880-9474
For Details : Folkstrain.com
8. List out different varieties of locators?

Different varieties of locators are:

By.id()
By.name()
By.tagName()
By.className()
By.linkText()
By.partialLinkText()
By.xpath
By.cssSelector()

For Free Demo Ph:+1 (646) 880-9474


For Details : Folkstrain.com
9. In selenium IDE what are the
component locators that will be
accustomed find parts on web page?
In selenium there are chiefly four locators that are used
X-path locators
Css locators

Html id
Html name

For Free Demo Ph:+1 (646) 880-9474


For Details : Folkstrain.com
10. Define 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.

For Free Demo Ph:+1 (646) 880-9474


For Details : Folkstrain.com
For Free Demo Ph:+1 (646) 880-9474
For Details : Folkstrain.com