Tag Archives: selenium

Top selenium interview questions

Top Selenium Interview Questions: 1. Can you tell me about yourself? 2. Can you explain about your latest project? 3. What is the difference between selenium and other automation tools in the market? 4. What are different types of testing? 5. Where would you see yourself in the next 5 years? 6. Can you explain… Read More »

Selenium Tutorials

Selenium Tutorials Introduction: Selenium is a free and open source test automation tool for testing web applications. Selenium can be installed on most of the operating systems like Windows  Linux  Apple iOS   etc. Cross browser testing is possible using selenium i.e., we can run the test scripts in different browsers like Firefox  IE  Chrome  Opera … Read More »

do while loop in java

Difference between while and do while loop in java: while loop do while loop Checks the condition before executing the statement. It first executes the statement and then checks the condition. Entry controlled loop. Exit controlled loop. Condition comes before the body. Condition comes after the body. Statement(s) are executed at least once. Example: int… Read More »

selenium-interview-questions-2

Selenium Interview Questions: 1. Question on xpath. Parent child traversing. Lets consider we have 1 parent element and 3 child elements. Write a xpath to identify the 2nd child element using 1st child element? Selenium Testing Selenium WebDriver Selenium Automation Solution: //*[@id=’id1′]/following-sibling::li[1] Explanation: If you give the xpath ‘//*[@id=’id1′]‘ in firepath or chropath, 1st child… Read More »

ssl certificate error handling in selenium

SSL certificate error handling in Selenium: In this article, learn how to handle SSL certificates in Selenium WebDriver. SSL (Secure Socket Layer) certificate:  An SSL certificate creates a secure channel through which information including usernames, passwords, credit card numbers and more can pass safely. SSL Certificates validate the website’s identity, and encrypt the information visitors… Read More »

How to convert string to int in Java

How to convert string to int in Java: In this post, you are going to learn, how to convert string to int in Java. parseInt valueOf NumberFormatException 1. Integer.parseInt(): String str = “50”; int num= Integer.parseInt(str); System.out.println(num); Output: 50 Info: It parses the string argument as a decimal integer. All characters in the string must… Read More »