As a Test Automation engineer, we always come across this situation when we need to design and develop test automation scripts rapidly in quick span of time during shorter sprints in Agile methodology. This extension will help in achieving
- Finding all the objects which has name/id/custom attributes attached to them by unique color code
- Developers could use it to find missing fields where name/id/custom attributes are not added by mistake. This proactive measure helps test automation greatly.
- Test Automation Developers could easily hover around the page and see the available object attribute and their values by just seeing the color [ID as 'lite purple' ; Name as 'lite Green']and later copy them to use in the test script.
Thus the main objective of this extension is ::"Use of id/name/unique custom attributes as feasible locator instead of using tedious xpath/cssSelector unless absolutely necessary. And how to proactively find and add them"
During test automation script development, we spent considerable amount of time to build and maintain objects definitions.And it takes time to create robust xpath, cssSelector. But this effort reduces significantly when we have unique id/name our custom attributes defined.
It is better to ask your development team to add id/name or custom attributes [ meant for automation] added to all the fields in the application upfront.Gone are the days, when this chrome extension - Selenium Object Finder [SOF] will help to find the coverage of availability of automation attributes in the application, by just seeing the colors.
Here is the link of SOF for your use - Click to Add it to Chrome
https://chrome.google.com/webstore/detail/selenium-object-finder/afckeoeojpomagchfimplhodjooafmcfQuick guide on the buttons::
Find Objects - Helps to spot all the available id,name or custom attributes in that page with distinctive colors. And on hovering the field. Attribute values are displayed
ID as 'lite purple'
Name as 'lite Green'
See in Console (F12): This helps to copy all the found object definitions in the browser console and assign to unique number to easily identify.After clicking press F12.
Name as 'lite Green'
See in Console (F12): This helps to copy all the found object definitions in the browser console and assign to unique number to easily identify.After clicking press F12.
Refresh: if you think of resetting the page, just click it.
YouTube Guide::
No comments:
Post a Comment