Every thing you need to know about Selenium Testing

Selenium….heard for first time?. New to testing ha, definitely you might be wondering What is this Selenium and which various components do selenium have. Well I am here to answer those of your queries and the basic questions. This is an question and answer session about components of selenium testing.

Basic queries about components of selenium testing.

Selenium testing
                                                                  Selenium testing

1] what’s Selenium? and which various components selenium testing have?

Basically It’s a testing suite.speciality is that its automated and is one of the most trendy testing suites.It is specially made for supporting and inspiring mechanisation testing of practical aspects of applications which are web based, varieties of browsers and some platforms. As it is open source, it’s the most popular tool used in the testing professionals community.

Selenium testing is called suite because it is not just a single tool but the collection of few tools together at one place. Every one of the tools is made to satisfy different testing and requirements of testing environment.

2] Which testing types does Selenium testing support?

Selenium testing support two types of testing

first is Functional testing

and second one is Regression testing.

3] What are the restrictions of Selenium testing ?

The following list are the restrictions or disadvantages of selenium testing:-

  • Only web based applications are supported by selenium testing
  • Selenium cannot test cell phone applications
  • Also selenium testing is not offered for captcha and bar code readers
  • TestNG or Junit are the third party tools. tools like these can only be used to generate reports
  • Selenium testing suite is a free so there are no ready dealer or customer support but you can find help through various helping centres.
  • And user should be skilled. i.e he or she should have the knowledge of language programming.

4] Why to use Selenium IDE?

Selenium testing (IDE) is simple and easy tool among all the selenium package. It has record and playback feature which allows the user to learn any programming language with less associates. Selenium   IDE is excellent tool for newbie.

5] What’s Selenese?

It’s the language of selenium testing in which test scripts are written

6] What various types of locators present in selenium?

Locator can be described as an address that find out the the rare web element within web page.Hence to find out web elements exactly and flawlessly , there are various locators in selenium testing.

They are listed below:-

ID

ClassName

Name

TagName

LinkText

PartialLinkText

Xpath

CSS Selector

DOM

7] What’s Xpath?

Xpath is used to detect web element depending on its XML path. XML is extensible markup language and is used to collect, regulate and transit arbitrary data. It collects data in type of HTML tags. Xpath and HTML tags are both markup languages and Xpath can be used to locate HTML elements.

8] When to use selenium grid?

Selenium grid can be used to raise same or different test scripts on various platforms and browsers at the same time to get distributed test results. tests in different environment testing and save time.

9] What’s Selenium1 and Selenium2?

Selenium RC and web driver  both together are known as selenium 2 and alone selenium Rc is known as selenium1

10] how to launch browser with help of web driver?

To launch the browser using web driver use the fallowing syntax:-

WebDriver driver = new FirefoxDriver();

WebDriver driver = new ChromeDriver();


WebDriver driver = new InternetExplorerDriver();

11] what are various drivers available in web driver?

Different drivers available are as follows:-

FirefoxDriver

InternetExplorerDriver

ChromeDriver

SafariDriver

OperaDriver

AndroidDriver

IPhoneDriver

HtmlUnitDriver

12] What are the different types of waits available in WebDriver?

There are two types of waits available in WebDriver:

Implicit Wait

Explicit Wait

13] How to type in a textbook using Selenium?

User can use sendKeys(“String to be entered”) to enter the string in the textbox.

Syntax:

WebElement username = drv.findElement(By.id(“Email”));

// entering username

username.sendKeys(“sth”);

14] How can you find if an element in displayed on the screen?

WebDriver facilitates the user with the following methods to check the visibility of the web elements. These web elements can be buttons, drop boxes, checkboxes, radio buttons, labels etc.

isDisplayed()

isSelected()

isEnabled()

15] How can we get a text of a web element?

Get command is used to retrieve the inner text of the specified web element. The command doesn’t require any parameter but returns a string value. It is also one of the extensively used commands for verification of messages, labels, errors etc displayed on the web pages.

16] How to select value in a dropdown?

Value in the drop down can be selected using WebDriver’s Select class.

17] How to handle frame in WebDriver?

An inline frame acronym as iframe is used to insert another document with in the current HTML document or simply a web page into a web page by enabling nesting.

Want to know about unix visit unix tutorials with examples

 

Share This Post

Post Comment