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 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
How To Work with HTML Data Tables in Selenium Java, Python, C#, Ruby
Odds are at some point you’ve come across the use of tables in a web application to display data or information to a user, giving them the option to sort and manipulate it. Depending on your application it can … Read More
How To Select from a Dropdown in Selenium Java, Python, Ruby, C#
Selecting from a dropdown list seems like one of those simple things. Just grab the list by it’s element and select an item within it based on the text you want. While it sounds pretty straightforward, there is a bit more … Read More
How To Work with Frames (iframe) in Selenium Java, Python, Ruby, C#
On occasion, you’ll run into a relic of the front-end world — frames. And when writing a test against them, you can easily get tripped if you’re not paying attention. Rather than gnash your teeth when … Read More
- Page 1 of 2
- 1
- 2