Scroll to top

Selenium

Posted by Chandana Chaitanya
June 20, 2017

9w. WebDriver – Looping through table elements

Welcome back, Warriors! We just saw how to check if a particular data is present in a table’s specific cell with and without using XPath. Time to loop through each element and visualize the power of Selenium WebDriver. Let us go back to our Demo Site and focus on “Books & Authors” table to understand this concept.
Continue Reading

Read More
Posted by Chandana Chaitanya
May 22, 2017

9v. WebDriver – Handling tables in two ways

Hiya champions! Welcome back to yet another post on handling web elements using Selenium WebDriver. You learn something new every day, talking of which here is what we will be learning today: handling tables with and without using XPath! Let us go back to our Demo Site for a good grasp of the concept. Tables are like those celebrities that are everywhere. Well, it is time to go and meet our star! Throughout this post, we will be working with the table, “Table For Practice” from the demo site. There will be a lot of scenarios where you might want to check if a particular data is present in a table’s specific cell. So, let us go ahead and hit the bold on the head!
Continue Reading

Read More
Posted by Chandana Chaitanya
May 15, 2017

9u. WebDriver – Selecting items in two ways (Dropdowns and multiple selections)

Hiya rockstars (guitar and music not included though)! In this post, we delve into dropdowns and how to select items in two ways. And yes, we also talk about multiple selections! All concepts will be explained along with examples from our Demo Site. Method 1: Using the same age old traditional way of locating elements using one of the available locating strategies. First, we find the dropdown element and then locate the required item to select. This is little difficult as the options have no unique identifiers.
Continue Reading

Read More
Posted by Chandana Chaitanya
April 10, 2017

9t. WebDriver – Handling radio buttons and checkboxes

Hiya superstars! I know that you are now an expert in handling text boxes and images, but there is more to learn. Let us get hard-core! Let us understand how to handle radio buttons, checkboxes, dropdowns, tables, alerts and much more but we will see one at a time. In this post, we will concentrate on handling radio buttons and checkboxes. At the end, you will be more expressive with WebDriver than you ever thought is possible.
Continue Reading

Read More
Posted by Chandana Chaitanya
March 27, 2017

9o. WebDriver – Locating elements: Part 4b (by XPath contd.)

Hiya champs! Welcome to our final post on locating elements. Yay!!! This is a continuation from our previous post, “9n. WebDriver – Locating elements: Part 4a (by XPath)”. You have heard me say this before and you will hear me say it again… read Part 4a before going any further for a complete grip on using XPath strategies. In this post, we will be looking into the below techniques, Using Text() Using starts-with() Using XPath axes These techniques along with the ones we saw in part 4a, can be combined and used to form an effective XPath that can locate any element on the web page. Time to walk through today’s techniques with examples.
Continue Reading

Read More
Posted by Chandana Chaitanya
March 24, 2017

9n. WebDriver – Locating elements: Part 4a (by xpath)

Welcome back, we will cover XPath strategies today. This is an advanced and effective locating strategy as well (by cssSelectors was too!). While being effective, it can sometimes be confusing. So, let us delve on how to understand our often misunderstood friend and come up with the good code once for all.
Continue Reading

Read More
Posted by Chandana Chaitanya
March 14, 2017

9s. WebDriver – Handling text boxes and images

Hiya testers! If you have been following my posts closely, you should already be a pro in entering text using Selenium WebDriver. If not(with a sad face), nothing to worry! I got you all covered.
Continue Reading

Read More
Posted by Chandana Chaitanya
March 6, 2017

9p. WebDriver – Timesaver/Shortcut: Locator validation

Here comes today’s icing on the cake: ‘a shortcut to validate if the chosen locator strategy uniquely identifies the web element under test’.
Continue Reading

Read More
Posted by Chandana Chaitanya
March 1, 2017

9q. WebDriver – Handling a CAPTCHA

Did someone say captchas? Okay, I heard it! Let’s see how these can be handled using Selenium WebDriver and yeah, we will try getting this done quickly as I will have to shoot off to a contest later today. Prepare to be lit up CAPTCHA is a bacronym for "Completely Automated Public Turing test to tell Computers and Humans Apart".
Continue Reading

Read More
Posted by Chandana Chaitanya
February 21, 2017

9m. WebDriver – Locating elements: Part 3b (by cssSelector contd.)

Hi ninjas! This post is a continuation of our previous post, “9l. WebDriver – Locating elements: Part 3a (by cssSelector)”. Before going any further, please make sure you take a good look at it. The last two ways of using cssSelector locators which are yet to be discussed are, Locating child elements Matching by sub-string Without further ado, let's get into action!
Continue Reading

Read More