Best Practices for Choosing Locators for Selenium

September 26, 2018

A question that comes often, especially by folks that are new to Selenium, is what are the best practices to use when choosing a locator for an element. In other cases, people just have bad habits and don’t even think to ask this question, but they encounter instabilities or maintenance problems, without knowing that they don’t use the locators effectively. For the sake of clarity, a locator is the combination of the type and the value of the By clause which Selenium WebDriver uses in the FindElement and FindElements methods. As you probably know (given you’re familiar with Selenium), Selenium...

My book "Complete Guide to Test Automation" is due in September

July 10, 2018

Update: The book is available at Amazon, or directly through Apress. According to the last time I've checked, Amazon had a better price a hard copy, but had no option for a soft copy, while through Apress you can order either a hard copy or a soft copy. I’m very proud to let you know that I finally completed writing the book I was working on for the last 2 years. While at first I called it “Succeeding with Test Automation”, when Apress Publishing suggested to publish my book they suggested the better name: “Complete Guide to Test Automation – Techniques,...
no comments

Selenium in Depth – the demos

March 6, 2017

Last month I gave a talk on the Israel Test Automation Meetup titled "Selenium in Depth". In this talk I showed highly simplified examples that demonstrate how Selenium behaves in certain conditions, mostly related to the html and JavaScript on the page. Now I decided to share the demos and you can find it here. Each demo is contained in a Test Case method. Most of them use a specific super-simple HTML file that is part of the project too. Note that not all tests pass, and this is by design! Here's a short description of the test cases: IsItABugInSelenium - If you just open...

Writing maintainable automated test and infrastructure – With live video recording!

November 9, 2016

Hi all, Long time since I last wrote here, but if you'll take a look at the draft of my book, you'll see why... By the time I'm writing this post I wrote 80 pages in the book, and hopefully when you read it there will be even more. Anyway, today I want to share with a screen cast that I recorded with one of my clients, in which I show to a new automation developer on the team how to create a new automated test and explain how I'm going about building a highly maintainable framework. The video is in...
one comment

“Succeeding with Test Automation” – The book!

July 3, 2016

Hi everyone! I'm super excited to let you know that I started writing a book, called "Succeeding with Test Automation". By now I wrote only 1.5 chapters, but that's something too :-) UPDATE: I already wrote 82 pages and 7 chapters. Stay tuned for more! You can find the draft here, and I'll update it from time to time as I proceed. I still don't know when/where/how I'm going to publish it, but I guess that when it will be closer to completion I'll know better. At the meantime, I'm looking forward for your feedback!! It's really important to me! Thanks in advance, Arnon.  
one comment

הקלטות מקורס מיומנויות תכנות מתקדמות

April 21, 2016

For all non Hebrew readers: in this post I'm sharing some videos from a course I led about "Advanced programming skills". Because the course was in Hebrew (and therefore the videos are too), then it's only relevant to Hebrew readers. Sorry about that :-) ועכשיו לעברית: בחודשיים האחרונים העברתי קורס פנימי לעובדי סלע. מטרת הקורס שכלל 8 מפגשים בני כשעתיים כל אחד, היתה שיפור מיומנויות התכנות. הקורס עסק בהעמקת היסודות והבנת התהליכים שקורים במחשב (שפת מכונה, קומפילציה, מערכת ההפעלה, CLR וכדו'), ובמיומנויות של Clean Code ו-Refactoring. אני שמח לבשר לכם שהקלטנו את כל המפגשים בוידאו ועכשיו אני יכול לשתף בהם את...
no comments

TestAutomationEssentials.Selenium (Beta) is now available!

March 20, 2016

I'm excited to share with you that I've added a new library to the Test Automation Essentials suite, that includes reusable code for Selenium based tests! This is a Beta version because it still doesn't include XML documentation and unit tests, which I try to include in the released versions. However, it is tested and is used in production in one of my customers! To start using it, simply add it as a NuGet package as follows: Right click on the Project References Select "Manage NuGet Packages..." Make sure that "Online" is selected In the search box, type "TestAutomationEssentials.Selenium". The package should appear in the...

I’m on .Net Rocks!!!

January 14, 2016

Hi everybody, As a long time avid listener of the greatest podcast for .Net developer - ".Net Rocks" , I'm very excited to let you know that I'm the guest at show 1243! In this show titled "Successful Test Automation with Arnon Axelrod", I'm talking with the Carl and Richard (the hosts of the show) about best practices in test automation and how to write a good test automation suite that is valuable and easy to maintain. I also talk about my Test Automation Essentials GitHub project I announced in a previous post. Please listen up and tell me what you think! I'd like to...
no comments

Keeping an active desktop session

January 3, 2016

UPDATE: For some reason, the solution as it was before didn't always work. I don't understand the root cause, but the solution was simply to remove the "-file" at the start of the arguments of the Task's action. I now fixed the instructions below accordingly.   When doing any kind of UI automation, there are several cases that a desktop session will be active. I’ll get to what it actually means in a second, but first I want to list some of the common problems that people encounter that are caused by not having an active desktop session: 1. In Coded UI,...