Step 1: install java Download and install Java JDK 8 and check whether Java is installed properly by typing java -version Step 2: Setting up JAVA_HOME Open the terminal and type the below $ vim … Read More
How To Test for Disabled Elements in Selenium Java, Python, Ruby, C#
On occasion, you may have the need to check if an element on a page is disabled or enabled. If we look at the API documentation for Selenium’s IWebElement Interface, we can see there is an available method called Enabled that can … Read More
How To Run Your Selenium Tests on Chrome Browser Java, Python, Ruby, C#
It’s straightforward to get your tests running locally against Firefox. But when you want to run them against a different browser like Chrome, you download the ChromeDriver and mention the file path before creating the WebDriver object. Chrome Driver can be … Read More
How to run Selenium scripts in Safari Browser in Mac using SafariDriver Java, Python, Ruby, C#
As a prerequisite, we need to enable the Remote Automation feature from the developer menu. To do so, enable the Safari Developer menu first with the steps below: Go to Safari -> Preferences-> Advanced Tick mark the Checkbox with … Read More
How to upload Cucumber execution results to Zephyr Scale [JAVA]
It Creates a new Test Cycle based on provided automated test results.This endpoint receives a zip file containing one or more Cucumber Json Output file.Below is the java example to upload Cucumber execution results to Zephyr … Read More
How To Handle Exceptions in Selenium Java, Ruby, Python, C#
It doesn’t take long when using Selenium before you run into errors from Selenium that may seem inexplicable (e.g., NoSuchElementException or StaleElementReferenceException). They can be a bit of a shock if you’re not sure what they are, how to handle them, or where to … Read More
How To Take a Screenshot on Failure with Selenium Java, Python, Ruby, C#
With browser tests, it can often be challenging to track down the issue that caused a failure. By itself a failure message along with a stack trace is hardly enough to go on. Especially when you run the … Read More
How To Right-click with Selenium Java, Python, Ruby, C#
Sometimes you’ll run into an app that has functionality hidden behind a right-click menu (a.k.a. a context menu). These menus tend to be system-level menus that are untouchable by Selenium. So how do you test this functionality? By leveraging Selenium’s Action … Read More
How To Work with Multiple Windows in Selenium Java, Python, Ruby, C#
Occasionally you’ll run into a link or action in the application you’re testing that will open a new window. In order to work with both the new and originating windows, you’ll need to switch between them. On the face … Read More
How To check Checkboxes checked or not in Selenium Java, Python, C#
Checkboxes are an often used element in web applications. But how do you work with them in your Selenium tests? Intuitively you may reach for a method that has the word ‘checked’ in it — like .checked? or .isChecked. But this doesn’t exist … Read More