Selenium interview questions
How Selenium WebDriver Works On a high-level, Selenium WebDriver works in three steps: Test commands are converted into an HTTP request by the JSON wire protocol. Before executing any test cases, every browser has its own driver, which initializes the server. The browser then starts receiving the request through its driver. Appium Desired Capabilities Desired Capabilities are keys and values encoded in a JSON object, sent by Appium clients to the server when a new automation session is requested. They tell the Appium drivers all kinds of important things about how you want your test to work. Q1. How to handle Multiple windows. Ans:- through getwindowhandles(); driver.get("http://www.naukri.com/"); // It will return the parent window name as a String String parent=driver.getWindowHandle(); Set<String> s=driver.getWindowHandles(); // Now iterate using Iterator Iterator<String> I1= s.iterator(); while(I1.hasNext()) { String child_window=I1.next(); if(!...