{"id":932,"date":"2021-04-03T19:46:04","date_gmt":"2021-04-03T08:46:04","guid":{"rendered":"http:\/\/clickworks.me\/?post_type=portfolio&#038;p=932"},"modified":"2021-04-03T19:56:46","modified_gmt":"2021-04-03T08:56:46","slug":"abn-lookup","status":"publish","type":"portfolio","link":"https:\/\/clickworks.me\/index.php\/portfolio\/abn-lookup\/","title":{"rendered":"05 | ABN Lookup Web UI Test Automation Examples"},"content":{"rendered":"<div class=\"post-tag\">Tags: <a href=\"http:\/\/clickworks.me\/index.php\/tag\/web-ui-testing\/\" rel=\"tag\">web UI testing<\/a> <a href=\"http:\/\/clickworks.me\/index.php\/tag\/automation\/\" rel=\"tag\">automation<\/a> <a href=\"http:\/\/clickworks.me\/index.php\/tag\/Selenium\/\" rel=\"tag\">Selenium<\/a><\/div>\n<p><strong>Date: March 2021<\/strong><\/p>\n<p><strong>GitHub:<\/strong> <a href=\"https:\/\/github.com\/MaksimZinovev\/py-abn-lookup\">link<\/a><\/p>\n<p><strong>Project description. <\/strong>Examples of automated web UI tests built using Selenium, Python and Pyleniumio.<\/p>\n<p>&nbsp;<\/p>\n<p class=\"md-end-block md-p\"><span class=\"md-plain\">Here are details of the tests :<\/span><\/p>\n<p><strong>Tests :<\/strong><\/p>\n<ul>\n<li>\n<p><strong>TC-1<\/strong><\/p>\n<ul>\n<li>\n<p>Steps:<\/p>\n<ul>\n<li>Open browser and navigate to\u00a0<a href=\"https:\/\/abr.business.gov.au\/\" rel=\"nofollow\">https:\/\/abr.business.gov.au\/<\/a><\/li>\n<li>Type&#8221; Automic&#8221; in the lookup field<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Expected:<\/p>\n<ul>\n<li>The search results shall contain<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-large wp-image-933\" src=\"http:\/\/clickworks.me\/wp-content\/uploads\/2021\/04\/search_results-1024x216.png\" alt=\"search results abn lookup\" width=\"640\" height=\"135\" srcset=\"https:\/\/clickworks.me\/wp-content\/uploads\/2021\/04\/search_results-1024x216.png 1024w, https:\/\/clickworks.me\/wp-content\/uploads\/2021\/04\/search_results-300x63.png 300w, https:\/\/clickworks.me\/wp-content\/uploads\/2021\/04\/search_results-768x162.png 768w, https:\/\/clickworks.me\/wp-content\/uploads\/2021\/04\/search_results.png 1435w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>TC-2<\/strong><\/p>\n<ul>\n<li>\n<p>Steps:<\/p>\n<ul>\n<li>\n<p>Execute TC-1<\/p>\n<\/li>\n<li>\n<p>Click on link \u201c27 152 260 814\u201d<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Expected:<\/p>\n<ul>\n<li>ABN details should contain<\/li>\n<\/ul>\n<\/li>\n<li><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-large wp-image-934\" src=\"http:\/\/clickworks.me\/wp-content\/uploads\/2021\/04\/abn_details-1024x441.png\" alt=\"abn details\" width=\"640\" height=\"276\" srcset=\"https:\/\/clickworks.me\/wp-content\/uploads\/2021\/04\/abn_details-1024x441.png 1024w, https:\/\/clickworks.me\/wp-content\/uploads\/2021\/04\/abn_details-300x129.png 300w, https:\/\/clickworks.me\/wp-content\/uploads\/2021\/04\/abn_details-768x331.png 768w, https:\/\/clickworks.me\/wp-content\/uploads\/2021\/04\/abn_details.png 1494w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/li>\n<\/ul>\n<p><strong>Challenges<\/strong>. I learned that when we use &#8220;contains text&#8221; method to find web elements, we should be careful. Elements which contain the same text can be invisible. As a result, the test script will be using the wrong element and test results can be very confusing (&#8220;Why the test fails? The element was found correctly! &#8211; Are you sure?&#8221;).\u00a0<\/p>\n<p><strong>Tools and Languages:<\/strong><\/p>\n<ul>\n<li>Python<\/li>\n<li>Selenium<\/li>\n<li>pytest\u00a0<\/li>\n<li>Pylenium.io<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><script src=\"chrome-extension:\/\/fbnkflkahhlmhdgkddaafgnnokifobik\/assets\/pageScripts.js\"><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tags: web UI testing automation Selenium Date: March 2021 GitHub: link Project description. Examples of automated web UI tests built using Selenium, Python and Pyleniumio. &nbsp; Here are details of the tests : Tests : TC-1 Steps: Open browser and navigate to\u00a0https:\/\/abr.business.gov.au\/ Type&#8221; Automic&#8221; in the lookup field Expected: The search results shall contain &nbsp; TC-2 Steps: Execute TC-1 Click on link \u201c27 152 260 814\u201d Expected: ABN details should<\/p>\n<div class=\"read-more\"><a class=\"btn read-more-btn\" href=\"https:\/\/clickworks.me\/index.php\/portfolio\/abn-lookup\/\">Read More<\/a><\/div>\n","protected":false},"featured_media":937,"comment_status":"open","ping_status":"closed","template":"","portfolio_cat":[20,27],"portfolio_skill":[24,64,65],"_links":{"self":[{"href":"https:\/\/clickworks.me\/index.php\/wp-json\/wp\/v2\/portfolio\/932"}],"collection":[{"href":"https:\/\/clickworks.me\/index.php\/wp-json\/wp\/v2\/portfolio"}],"about":[{"href":"https:\/\/clickworks.me\/index.php\/wp-json\/wp\/v2\/types\/portfolio"}],"replies":[{"embeddable":true,"href":"https:\/\/clickworks.me\/index.php\/wp-json\/wp\/v2\/comments?post=932"}],"version-history":[{"count":6,"href":"https:\/\/clickworks.me\/index.php\/wp-json\/wp\/v2\/portfolio\/932\/revisions"}],"predecessor-version":[{"id":941,"href":"https:\/\/clickworks.me\/index.php\/wp-json\/wp\/v2\/portfolio\/932\/revisions\/941"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/clickworks.me\/index.php\/wp-json\/wp\/v2\/media\/937"}],"wp:attachment":[{"href":"https:\/\/clickworks.me\/index.php\/wp-json\/wp\/v2\/media?parent=932"}],"wp:term":[{"taxonomy":"portfolio_cat","embeddable":true,"href":"https:\/\/clickworks.me\/index.php\/wp-json\/wp\/v2\/portfolio_cat?post=932"},{"taxonomy":"portfolio_skill","embeddable":true,"href":"https:\/\/clickworks.me\/index.php\/wp-json\/wp\/v2\/portfolio_skill?post=932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}