41⟩ Tell me how can you switch back from a frame?
defaultContent() method is used to switch back from a frame.
“Automation related Frequently Asked Questions by expert members with professional career as Automation. These list of interview questions and answers will help you strengthen your technical skills, prepare for the new job interview and quickly revise your concepts”
defaultContent() method is used to switch back from a frame.
getAttribute("{attributeName}") //method is used find the value of different attributes of an element
The same click() method could be used for checking checkbox as well as for clicking buttons or radio buttons.
Java, C#, Python, and Ruby, are all supported directly by the development team. There are also PHP and Perl WebDriver implementations.
Automation tools could be used for post-release validation with continuous integration: CruiseCont, Hudson, Jenkins, Quick Build.
The list of driver classes could be used for the browser automation.
☛ AndroidDriver,
☛ ChromeDriver,
☛ EventFiringWebDriver,
☛ FirefoxDriver,
☛ HtmlUnitDriver,
☛ InternetExplorerDriver,
☛ iPhoneDriver,
☛ iPhoneSimulatorDriver,
☛ RemoteWebDriver
Regression testing coverage, test engineer productivity, consistency in testing, test cases reusability, reduced software maintenance cost, increased test effectiveness, reduction of the test interval, reducing human-generated errors.
Selenium IDE can be set in two ways:
☛ in Selenium IDE right click on the command and the select “Set / Clear Start Point”
☛ press “S” key on the keyboard and select the command in Selenium IDE
You can use driver.manage().timeouts().pageLoadTimeout(); for network latency
AutoIT is used to handle window GUI and non-HTML popups in the application.
FirefoxDriver is a Java class. It implements all the methods available in the interface.
‘WebDriver' is an interface and we are creating an object of type WebDriver instantiating an object of FirefoxDriver class.
It is used to deselect all the options which have been selected from the drop-down list.
The tooltip text in Selenium could be verified by fetching the value of 'title' attribute. An example:
String toolTipText = element.getAttribute("title");
isEnabled() method could be used for it:
driver.findElement(By.id(“id_of_element”)).isEnabled();
WebDriver’s Select class is used to select value in the drop down.
selectByVisibleText:
Select selectByVisibleText = new Select (driver.findElement(By.id(“id_of_some_element”)));
selectByVisibleText.selectByVisibleText(“some_visible_text”);
Firebug is a Firefox plugin that provides various development tools for debugging applications. From an automation perspective, Firebug is used specifically for inspecting web-elements in order to use their attributes like id, class, name etc. in different locators.
JDBC (Java Database Connectivity) API is required for Database Testing in Selenium WebDriver.
We can do it if JAVA testing framework is not used. If we use Java client driver of Selenium, instead of using Java testing framework, TestNG allows us not to use Selenium Grid.
Selenium Grid node is a hub attached machine, which has instances running the test scripts. Unlike a hub, there can be more than one nodes in Selenium Grid.