Scroll to top

Selenium

Posted by Chandana Chaitanya
June 15, 2018

10g. Advanced WebDriver – Saving screenshots to a word document

Hiya Champs! Hope you had a great time taking screenshots and saving them locally. Today, let us see how we can create a word document and insert all images captured as part of a test case into that. Having a separate document for each test case would not only help us keep our workspace organized but also searching for a particular screenshot becomes a piece of cake. And the best part is, we are going to write code so that all this stuff happens automatically without any manual intervention. Allow me to get straight to the point.

Read More
Posted by Chandana Chaitanya
June 9, 2018

10f. Advanced WebDriver – Taking a Screenshot

Hiya Champs! Screenshot. another frequently heard term on the crowded streets of Software Testing. What good is a test if you cannot prove with a screenshot when a bug appears in your environment but not in development! So, it’s high time that we understand how to grab one using Selenium WebDriver. I know you have a few questions springing up to your mind. The most important one being, “If it was a manual test, then I could have just hit the ‘PrntScr’ button on my keyboard and have a beautiful screenshot to treasure. But when I automate, how do I achieve the same result?” And guess what, it is laughably simple! Just follow 3 steps, and you have a screenshot at your disposal. If you are like me, you are probably anxious to see how this works in code. I aim to please, so without further delay…

Read More
Posted by Chandana Chaitanya
June 1, 2018

10e. Advanced WebDriver – Generating a PDF report

Hiya Champs! We have covered a lot of ground on reports so far, and you have reached the climax article. Generating an HTML report may not be that helpful if you want to attach it to an email and send it to your stakeholders. Because the ANT generated JUnit report has an index.html file which in turn embeds a few other HTML files such as overview-frame.html, all classes-frame.html, and overview-summary.html files. What do we do in this situation? How do we attach this to an email? Can we not get it as a single file instead of a set of HTML files? – A single answer to all these questions is, to generate a PDF file instead. Let us look at the procedure for generating a PDF report without disturbing the customizations we made thus far,

Read More
Posted by Chandana Chaitanya
May 23, 2018

10d. Advanced WebDriver – JUnit Report Customization Contd.

Hiya champs! If you had not let your imagination run wild with the previous post, I will help u do just that today. We will be,

  • Adding or deleting a column
  • Changing the styles
  • Adding a logo to the header section
  • Modifying static text

Read More
Posted by Chandana Chaitanya
May 17, 2018

10c. Advanced WebDriver – JUnit Report Customization

Customization! Who doesn’t like some uniqueness in their creations? Let us add some icing to our Apache ANT generated JUnit Report and make it look all the more beautiful by bringing in some goodness to it. As a first step towards customizing the auto-generated report, let us understand the code behind it (from Build.xml),

Read More
Posted by Chandana Chaitanya
May 9, 2018

10b. Advanced WebDriver – Generating JUnit Report

Hiya champs! Reports, reports, reports everywhere. We have been dealing with these from the age of Harry Potter!! (Remember progress reports from school?!) Anyways, reports are really important especially in testing to get a quick understanding of how everything is working. So today, we are going to use junitreport task of Apache ANT to generate one. Prepare to be lit up!

Read More
Posted by Chandana Chaitanya
April 13, 2018

10a. Advanced WebDriver - Using Apache ANT

Hiya folks! Do you have ANTs in your build? Just kidding! Actually, I am not. Agreed that it sounds weird, but don’t fear as I am here! (Now, that's what I call, rhyming.) Today, let us ponder about what exactly this Apache ANT is and why it takes its place as an important building block in the construction of a WebDriver framework. By the end of this post, you should be able to handle any ANT project in general.

Read More
Posted by Chandana Chaitanya
September 24, 2017

9z. WebDriver – Window maximize

Hiya Champs! Things don’t always work the way we want them to and that’s where the challenges take their form. With Selenium Webdriver, our testing lives are made far easier than we would expect them to be. One such situation is maximizing the browser window. Screenshots are a life saver and in order to view all the web elements while grabbing one, it is important to maximize the browser window. Therefore, instead of scrolling down to a particular element, just maximize the window and complete the task at hand.

Read More
Posted by Chandana Chaitanya
August 27, 2017

9y. WebDriver – Handling multiple windows

Hiya folks! Testing workflows involving multiple windows has become a part of life. And with Selenium WebDriver, smoothly switching between these open windows, has become a piece of cake. If you are like me, you are probably anxious to see how all this really works in our code. So, without further delay, let’s take a deep dive…

Read More
Posted by Chandana Chaitanya
August 13, 2017

9x. WebDriver – Handling alerts/pop-up boxes

Hiya enthusiasts! Wondering why Alert interface exists in Selenium WebDriver? Well, my friend, look no further than this post for the information you seek. We are going to talk all about popup boxes which are basically of three kinds – Alert box, Confirm box and Prompt box. As always we have our Demo Site to illustrate these concepts.

Read More