Selenium Questions
Selenium Questions
What is Selenium?
What is Selenese?
What is Selenium 2.0?
What is Xpath?
What is Locators in Selenium WebDriver ?
What is difference between Absolute path and Relative Path?
What are the different challenges with Selenium?
What is difference between Assert and Verify?
What is synchronization in Selenium Webdriver?
What is difference between implicit wait and explicit wait?
What is iframe and how to handle it with Selenium?
What are the different types of drivers in WebDriver ?
How to check any checkbox is selected or not?
How to check any button is enabled or not?
How to check any web element is visible or not?
How to get a text from a textbox?
What is Actions class?
How to select a value from dropdown?
What is difference between get() and navigate() ?
How to handle the web based popup with Selenium?
How to get page title of the web application?
How to handle multiple windows in Selenium?
How to verify tooltip text in Selenium?
What are the different exceptions we are facing in Selenium WebDriver?
How to upload the file using Selenium?
How to perform the right click with Selenium?
What is Selenium?
Selenium is a web based application open source, functional
and regression testing tool. Selenium supports most of the languages like
Java, PHP, Python, Perl, Ruby etc. It is the open source or free version tool
so become one of the most accepted tools amongst the testing
professionals. It is the combination of different testing tools like Selenium
IDE, Selenium RC, WebDriver and Selenium Grid.
What is Selenese?
Selenese is the set of selenium commands which are mostly test your web
application. Tester can test the broken links, existence of some object on
the UI, Ajax functionality, Alerts, window, list options and lot more using
Selenese.
Selenium commands, also referred to as Selenese are the set of
commands utilized in Selenium IDE that run your tests. A sequence of
Selenium commands (Selenese) together is understood as test script.
What is Xpath?
It is a path of element in a XML documents. By using this we can easily
find out a web element on a webpage.
//tagname[@attribute=’value’]
ID
Name
cssSelector
Link text
PartialLinkText
ClassName
tagName
Relative xpath start with double forward slash (//) and middle of the
HTML content. It is small and robust than absolute xpath.
Example: .//*[@id=’Blog1′]/div[1]/div[1]/div/div/div/h3/a
What are the different challenges with
Selenium?
1. Selenium only supports web-based application.
wait.until(ExpectedConditions.elementToBeClickable(By.id(“id”)));
What is iframe and how to handle it with
Selenium?
Iframe is a web page which is separate part of HTML pages. Iframe use for
to show some different things like Advertisment etc. For iframe we
uses <iframe> tag.
driver.switchTo().frame(“frameName”);
2. By Index
driver.switchTo().frame(indexOfFrame);
3. By WebElement
Example:
Actions act=new Actions(driver);
// mouse hover on an element and click on it.
act.moveToElement(element).click().build().perform();
selectByIndex()
selectByValue()
selectByVisibleText()
Example:
String alerttext=driver.switchTo().alert().getText();
Now assume after click on any link a child window will be open.
ग्राम नक्शा के सम्बन्ध अनुरोध प्राप्त कर लिया गया है | कृपया आगामी दिवस में नक्शा डाउनलोड करें |