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 add environment variable in Mac zsh and normal terminal
Sometimes I used to struggle to set environment variables in the Mac zsh terminal. Hope this post will be helpful for someone like me 😉 To open the environment file Sample zshenv file content Do … Read More
How To Mouse Hovers in Selenium Java, Python, C#, Ruby
If you need to work with mouse hovers in your tests it may not be obvious how to do this with Selenium. And a quick search through the documentation will likely leave you befuddled forcing you to go spelunking through StackOverflow … Read More
Selenium / Appium Xpath Techniques and Examples
Basic XPath starts with a star (*) The XPath starts with //* helps to find any matching the attribute specified Sample XPath To find any element using its attributes/properties Basic XPath starts with a tag … Read More
Git Basics
Git is a version-control system for tracking changes in computer files and coordinating work on those files among multiple people. This page contains a few useful git commands Most common flow of commands Create a repository … 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 JavaScript Alerts in Selenium Java, Python, Ruby, C#
If your application triggers any JavaScript pop-ups (a.k.a. alerts, dialogs, etc.) then you need to know how to handle them in your Selenium tests. Built into Selenium is the ability to switch to an alert window and either accept or dismiss it. … 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