- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Debomita Bhattacharjee has Published 867 Articles
Debomita Bhattacharjee
4K+ Views
We can perform double click on elements in Selenium with the help of Actions class. In order to perform the double click action we will use moveToElement() method, then use doubleClick() method. Finally use build().perform() to execute all the steps.Exampleimport org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import ... Read More
Debomita Bhattacharjee
2K+ Views
We can enter a letter in upper case in the edit box in Selenium with the help of Actions. In order to achieve this, we need to first move to the edit box, then click() on that field. Then press SHIFT and enter the letters using sendKeys() method. Finally use ... Read More
Debomita Bhattacharjee
2K+ Views
We can perform right click on an element in Selenium with the help of Actions. In order to perform the right click action we will use contextClick () method. First we need to move to the specific element with the help of moveToElement() method then will do the right click ... Read More
Debomita Bhattacharjee
4K+ Views
We can perform mouseover action on elements in Selenium with the help of Actions class. In order to perform the mouse movement we will use moveToElement () method of the Actions class. Finally use build().perform() to execute all the steps.Exampleimport org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import ... Read More
Debomita Bhattacharjee
3K+ Views
We can count the number of frames in Selenium by the methods listed below −With the help of List with tagname frame/iframe.With the help of a Javascript executor.ExampleWith tagname.import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import java.util.concurrent.TimeUnit; import java.util.List; public class FrameCount{ public static void main(String[] ... Read More
Debomita Bhattacharjee
5K+ Views
We can switch to frames in Selenium with the help of the following methods −switchTo()defaultContent()This method is for switching to and fro in between frames and parent frames. The focus is shifted to the main page.switchTo().parentFrame()This method is used to switch the control to the parent frame of the current ... Read More
Debomita Bhattacharjee
5K+ Views
We can handle frames in Selenium with the help of following methods −switchTo().frame( frameNumber)This method uses the frame id as the parameter. The index of frame id starts from 0. NoSuchFrameException is thrown if the frame is not found.switchTo().frame( frameName)This method uses the frame name as defined by the developer ... Read More
Debomita Bhattacharjee
1K+ Views
Selenium has getWindowHandles() method , which returns all the window handle ids for all the open windows. This is stored in Set data structure in String data types.In order to navigate to a specific window, we need to traverse to the window we want to access with the iterator() method ... Read More
Debomita Bhattacharjee
1K+ Views
Selenium WebDriver gives multiple APIs to handle pop ups or alerts with the help of Alert interface.dismiss()This will cancel the button for alert.accept()This will accept the button for alert.getText()This will extract the text on alert.sendKeys()This will enter text on the alert box.ExampleSyntax with code snippet −// Alert Alert a ... Read More
Debomita Bhattacharjee
404 Views
Fluent wait is a dynamic wait which makes the driver pause for a condition which is checked at a frequency before throwing an exception. The element is searched in DOM not constantly but at a regular interval of time.For example, if the wait is for 5 seconds, FluentWait monitors the ... Read More
To Continue Learning Please Login
Login with Google