9 : Selenium
WebDriver Is Paid Or Open Source Tool? Why you prefer to use It?
Answer : All
versions of selenium software testing tool are open source. You can use any
version of selenium In free of charge.
I choose to use It because
I choose to use It because
- Open Source.
- It has multi-browser support.
- Multi-OS support.
- Multi types of locators support.
So If one not works, We can use another type.
- Web as well mobile application
testing support.
- Many testers are using selenium
WebDriver to automate their testing process. So getting solution of any
complex Issue very easily on Internet.
- It Is extendable and flexible.
- Continues support from WebDriver's
development team to Improve the API and resolve current Issues.
10 : Which
OpenSource Framework Is Supported In WebDriver With Java?
Answer : Bellow given 2 java frameworks are supported by selenium WebDriver.
Answer : Bellow given 2 java frameworks are supported by selenium WebDriver.
- JUnit
- TestNG
·
11 : Can you tell me the syntax to open/launch Firefox browser In WebDriver software testing tool?
11 : Can you tell me the syntax to open/launch Firefox browser In WebDriver software testing tool?
·
Answer : We can open
new Mozilla Firefox browser Instance using bellow given syntax In
WebDriver software testing tool.
·
WebDriver driver = new FirefoxDriver();
12 : What Is XPath and what Is use of It In WebDriver?
·
Answer : In Selenium
WebDriver software testing tool, XPath is used to locate the elements. Using
XPath, We can navigate through elements and attributes In an XML document to
locate software webpage elements like buttons, text box, links, Images etc..
·
13 : Which tool you
are using to find the XPath of any element?
·
Answer : I am using
Mozilla Firefox AddOns FireBug and FirePath to find the XPath of software web
elements.
·
14 : What is the
difference between absolute XPath and relative XPath?
·
Answer :
Absolute XPath : Absolute XPath Is the full path starting from root node and ends with desired descendant element's node. It will start using single forward slash(/) as bellow.
Absolute XPath : Absolute XPath Is the full path starting from root node and ends with desired descendant element's node. It will start using single forward slash(/) as bellow.
·
Example Of Absolute XPath :
·
/html/body/div[3]/div[2]/div[2]/div[2]/div[2]/div[2]/div[2]/div/div[4]/div[1]/div/div/div/div[1]/div/div/div/div[1]/div[2]/form/table/tbody/tr[1]/td/input
·
·
·
Relative XPath : Instead of starting from root node, Relative XPath starts from
any In between node or current element's node(last node of element). It will
start using double forward slash(//) as bellow.
Example Of Relative XPath :
Example Of Relative XPath :
·
//input[@id='Resultbox']
·