Java for Testers Interview Questions And Answers – Part 2
Java for Testers – Interview Questions and Answers Part-2 1)  Write a Java program to print Floyd’s triangle? public class FloydTriangle { public static void main(String[] args){ Scanner sc = new Scanner(System.in); System.out.println("Enter the number of rows"); int rows = sc.nextInt(); printFloydTriangle(rows); } public static void printFloydTriangle(int n){ int number = 1; for(int i=0;i<n;i++){ for(int… (0 comment)

Selenium Java Interview Questions And Answers – Part 3
Selenium Java Interview Questions and Answers Part-3 1) How to scroll web page up and down using Selenium WebDriver? To scroll using Selenium, you can use JavaScriptExecutor interface that helps to execute JavaScript methods through Selenium Webdriver. JavascriptExecutor js = (JavascriptExecutor) driver; //This will scroll the page till the element is found js.executeScript("arguments[0].scrollIntoView();", Element); 2)… (0 comment)

Selenium Java Interview Questions And Answers – Part 2
Selenium Java Interview Questions and Answers Part-2 1) What are the different types of navigation commands in Selenium? Different navigation commands in selenium are: – navigate().to(); -navigate().forward(); -navigate().back(); -navigate().refresh(); 2) How to fetch the current page URL in Selenium WebDriver? We can use the getCurrentUrl() method to get the current page URL. driver.getCurrentUrl(); 3) How… (1 comment)

Selenium Java Interview Questions And Answers – Part 1
Selenium Java Interview Questions And Answers – Part 1  1) What is Selenium Webdriver? Selenium WebDriver is a browser automation framework that accepts commands and sends them to a browser. It is implemented through a browser-specific driver. It directly communicates with the browser and controls it. Selenium WebDriver supports various programming languages like – Java, C#, PHP, Python, Perl, Ruby.… (8 comments)