Professional Documents
Culture Documents
WWW.TESTBYTES.NET
2. What is Automation Testing?
WWW.TESTBYTES.NET
3. Why do we need software testing?
WWW.TESTBYTES.NET
4. When will you choose to use Selenium Grid?
WWW.TESTBYTES.NET
5. Can you illustrate the drawbacks of Selenium?
>Regression Testing
>Functional Testing
>Load Testing
WWW.TESTBYTES.NET
7. Can you test APIs or web services using Selenium
Web Driver and why?
WWW.TESTBYTES.NET
8. When will you choose to use Selenium IDE?
WWW.TESTBYTES.NET
9. What is X Path in Selenium?
WWW.TESTBYTES.NET
10. What is the basic difference between absolute
and relative X Path?
Absolute X Path: It uses a complete path
starting from the node of the root element
to go to the desired element.
WWW.TESTBYTES.NET
11. Have you ever automated test cases, If yes, how
many per day?
WWW.TESTBYTES.NET
12. Can you name the latest Selenium tool and its
use?
WebDriver is the latest selenium tool used
to automate web applications testing and
checks whether it is working as expected
or not.
WWW.TESTBYTES.NET
13. Can you state the difference between regression
and functional testing?
>Regression Testing: Regression testing is
a repeated test of an already tested
program.
WWW.TESTBYTES.NET
14. What is the use of TestNG in Selenium?
WWW.TESTBYTES.NET
15. Can we verify the image using Selenium?
WWW.TESTBYTES.NET
16. Can you state the difference between ‘Type’ and
‘TypeAndWait’ command?
>Type: When the user needs to enter the
text into a text field, type command is
used.
WWW.TESTBYTES.NET
17. How will you take screenshots using Selenium?
>Example:File scrFile =
((TakeScreenshot)driver).getScreenshotAs(
screenshot.JPG);
WWW.TESTBYTES.NET
18. Can you go back and forth in the browser using
Selenium?
>navigate().back()
>navigate().forward()
WWW.TESTBYTES.NET
19. Can you go back and forth in the browser using
Selenium?
>navigate().back()
>navigate().forward()
WWW.TESTBYTES.NET
20. How would you delete the cookies using Selenium?
Syntax: driver.manage().deleteAllCookies();
WWW.TESTBYTES.NET
21. Write the code to double-click an element?
WebElement element
=driver.findElement(By.id(“elementId”));
action.doubleClick(element).perform();
WWW.TESTBYTES.NET
22. Can you list all the navigations methods which are
used in Selenium?
Yes, the following are the different
navigation methods use in Selenium:
Syntax
driver.navigate().to(String
url);driver.navigate().refresh();
driver.navigate().forward();
driver.navigate().back();
WWW.TESTBYTES.NET
23. How will you perform drag and drop in Selenium?
action.dragAndDrop(sourceWE, destWE)
WWW.TESTBYTES.NET
24. How will you verify whether the element is
visible or not?
To verify whether the element is visible or
not, we’ll use following syntax:
WebElement e = driver.findElement();
boolean result = e.isDisplayed();
WWW.TESTBYTES.NET
25. How will you clear the text which is written in a
textbox?
We will use clear() command to clear the
text which is written in a text box.
Syntax: driver.findElement(By.id(“element
Locator”)).clear();
WWW.TESTBYTES.NET
Contact Details
Mailing address
Kalas road, Vishrantwadi, Pune, Maharashtra-411015
Email address
info@testbytes.net
Phone number
+91 811 386 5000