Saturday 18 July 2015

A Pinteresting Python Selenium Example

Eight months ago I started my selenium adventure by learning how to automate finding pictures of cute cats. I chose Python as my weapon of choice due to it being very easy to install, not requiring a server to run and not needing a heavy IDE for development. I have been writing automated UI tests both at home and at work. I found my automated tests not only saved me time carrying out tedious repetitive regression tasks, but also found a range of genuine bugs ranging from obscure to showstopper!

Once I started writing tests with Selenium I found the more I wrote, the more snippets of code I had available to re-use. Writing tests started becoming much faster when the challenges I was encountering were challenges I had previously solved. I wanted to take all my good code snippets and combine them into a useful test that could be used as an example or reference material. None of the tests I had written at work were suitable as they were not written for software which was available to the general public. So I chose a well-known website and decided I was going to write a really good test with lots of comments so I could keep all my code snippets in one place.

The site I chose to automate was Pinterest and my 'boiler plate' Python Selenium example can be found here on Github

While writing the test I discovered something that appeared to be a minor bug. A logged in user was able to enter the email address they used to register for Pinterest into the 'Invite friends' box and invite themselves to join Pinterest again, receiving an invitation email for a site they already registered for in the process. I guess I would have expected the user's email address to be checked to see if it already belonged to an active account before sending an invite. I guess this just proves there is always value in sitting down and taking the time to write these kinds of test.

36 comments:

  1. Thanks for sharing interview questions on software testing. Your post is very helpful for freshers and job seekers to excel in testing and do well in the job interview.
    Software testing training institutes in chennai

    ReplyDelete
  2. This blog will provide more knowledge about Software testing. It is very nice blog for beginners. Thank you for sharing this awesome blog.
    Software Testing Training in Chennai | Software Training Institutes in Chennai

    ReplyDelete
  3. I appreciate your efforts because it conveys the message of what you are trying to say. It's a great skill to make even the person who doesn't know about the subject could able to understand the subject . Your blogs are understandable and also elaborately described. I hope to read more and more interesting articles from your blog. All the best.

    python training in chennai | python training in bangalore

    python online training | python training in pune

    python training in chennai

    ReplyDelete
  4. It's interesting that many of the bloggers to helped clarify a few things for me as well as giving.Most of ideas can be nice content.The people to give them a good shake to get your point and across the command
    python training in annanagar
    python training in chennai
    python training in chennai
    python training in Bangalore

    ReplyDelete
  5. Really you have done great job,There are may person searching about that now they will find enough resources by your post
    Devops training in sholinganallur
    Devops training in velachery

    ReplyDelete
  6. Well with your permission let me grab your RSS feed to keep updated with forthcoming post. Thanks a million, and please keep up the gratifying work.
    fire and safety course in chennai

    ReplyDelete
  7. You blog post is just completely quality and informative. Many new facts and information which I have not heard about before. Keep sharing more blog posts.
    Microsoft Azure online training
    Selenium online training
    Java online training
    uipath online training
    Python online training


    ReplyDelete
  8. Incredible tips and straightforward. This will be exceptionally helpful for me when I get an opportunity to begin my blog. custom made front doors melbourne

    ReplyDelete
  9. Informative article. Thanks for sharing such an valuable article. Also visit my website for Relife Service Center - Home Appliance Repair Services Delhi NCR. Relife Service Center - Home Appliance Repair Services Delhi NCR

    ReplyDelete
  10. Informative article. Thanks for sharing such an valuable article. Also visit my website for Sofa Repair Services in East of Kailash. Sofa Repair Services in East of Kailash

    ReplyDelete
  11. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.DataScience with Python Training in Bangalore



    ReplyDelete
  12. Informative article. Thanks for sharing such an valuable article. Also visit my website for Relife Service Center | Sofa Refinishing Services in East of Kailash | (+91)-8449323282 (+91)-7088860500. Relife Service Center | Sofa Refinishing Services in East of Kailash | (+91)-8449323282 (+91)-7088860500

    ReplyDelete
  13. No matter where you purchase your home electronic appliance, Relife service center can fix it and explain the issues to their valued clients.
    fridge repair service in delhi

    ReplyDelete
  14. our enthusiasm leads you beyond the limits. When you feel yourself enthusiastic that’s the time you can cross any limit. You seek to get perfection by using the ability of work. Read such motivational article and definitely it will help you to know new facts. Kitchen aid refrigerator repair

    ReplyDelete
  15. Somewhere the content of the blog surrounded by little arguments. Yes it is healthy for readers. They can include this kind of language in their writing skill as well as while group discussion in college. home care software

    ReplyDelete
  16. Thanks for sharing this, it was very informative, thank u so much…

    eTechno Soft Solutions is a leading training institute for all kind of the Oracle Training in Bangalore with real-time experienced trainers with 100% Placement Assistance.

    ReplyDelete
  17. This may be the proper weblog for desires to find out about this topic. You know so much its virtually challenging to argue along (not too I really would want…HaHa). You definitely put a new spin for a topic thats been revealed for some time. Excellent stuff, just great!bandarqq

    ReplyDelete
  18. Anyway, every car needs a parking space so in this article I'll attempt to show you how to install your appliances with the minimum of fuss. Refrigerator, Dryer, Washer, Stove, Oven, Range, BBQ Repair in Carpinteria

    ReplyDelete
  19. Thanks for your interesting information's in this blog is very much useful
    for me to improve my knowledge for more information about Home Nursing Services in Janakpuri

    ReplyDelete
  20. Hello, I also would like to comment over all the points mentioned in this blog. I agree with essence of few point but somewhere I found myself on other place. I hope, there might little opinion of others as well.home care software

    ReplyDelete
  21. I am appreciative to this blog giving one of a kind and accommodating learning about this theme, I read your blog now share extraordinary data here. This blog increse my insight source . home instead services Oakland

    ReplyDelete
  22. Your post is providing some really good information. I liked its essence and enjoyed reading it. Keep sharing such important posts about this blog and its much more helpful for us . home care software

    ReplyDelete
  23. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.

    aws training in chennai | aws training in annanagar | aws training in omr | aws training in porur | aws training in tambaram | aws training in velachery

    ReplyDelete
  24. nice content provided good one to visit this site oracle training in chennai

    ReplyDelete
  25. Wow ! Amazing information showing through your blog, it's a beautiful decoration things.Thanks for sharing.
    Home Furniture Manufacturers in South Delhi
    Home Furniture Manufacturers in Delhi NCR

    ReplyDelete
  26. Set your career goal towards Oracle for a wealthy future with Infycle. Infycle Technologies is one of the best Oracle DBA training institute in Chennai, that gives the most trusted and best Oracle DBA Training with various stages of Oracle in a 100% hands-on training which will be guided by professional tutors in the field. In addition to this, the mock interviews will be given to the candidates, so that, they can face the interviews with full confidence. Apart from all, the candidates will be placed in the top MNC's with a great salary package. To get it all, call 7502633633 and make this happen for your happy life.

    https://infycletechnologies.com/

    ReplyDelete
  27. Are you looking for Big Data training in Chennai with placement opportunities? Then we, Infycle Technologies are with you to make your dream into reality. Infycle Technologies is one of the best Big Data Training Institute in Chennai, which offers various programs along with Big Data such as Oracle, Java, AWS, Hadoop, etc., in complete hands-on practical training with trainers, those are specialists in the field. In addition to the training, the mock interviews will be arranged for the candidates, so that they can face the interviews with the best knowledge. Of all that, 100% placement assurance will be given here. To have the words above in the real world, call 7502633633 to Infycle Technologies and grab a free demo to know more. Big Data Training in Chennai

    ReplyDelete
  28. Thank you so much for share such a wonderful information and ideas. The author clearly describe all the parts of the article and we can easily understand each and every information. Quality articles is the vital to welcome the clients to pay visit the webpage, that’s what this site is giving. How To Clean Eat Book Online

    ReplyDelete
  29. I really appreciate this wonderful post that you have provided for us. I assure this would be beneficial for most of the people. knee to elbow

    ReplyDelete
  30. This post is so interactive and informative.keep update more information...
    Salesforce Training in Tambaram
    Salesforce Training in Chennai

    ReplyDelete