{"id":1573,"date":"2020-01-14T12:15:55","date_gmt":"2020-01-14T12:15:55","guid":{"rendered":"https:\/\/loadfocus.com\/blog\/?p=1573"},"modified":"2020-01-14T12:17:14","modified_gmt":"2020-01-14T12:17:14","slug":"using-selenium-ide-record-and-playback-tool","status":"publish","type":"post","link":"https:\/\/loadfocus.com\/blog\/2020\/01\/using-selenium-ide-record-and-playback-tool","title":{"rendered":"Using Selenium IDE Record and Playback tool"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\"><\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">minutes read<\/span><\/span><!-- pn-tldr --><h2>Key takeaways<\/h2><ul><li>Selenium IDE is the fastest way to capture a journey, and the worst way to maintain one.<\/li><li>Use it to draft a test, then export and clean up the locators.<\/li><li>Recorded selectors break on the next layout change, so treat them as a starting point.<\/li><\/ul><!-- \/pn-tldr -->\n<p style=\"text-align:left\" class=\"lead\"><a href=\"https:\/\/selenium.dev\/selenium-ide\/\">Selenium IDE<\/a> is an open source record and playback tool used. Easy to use and fast in generating UI functional test cases.<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/loadfocus.com\/blog\/wp-content\/uploads\/Screenshot-2020-01-14-at-12.13.13-1024x539.png\" alt=\"selenium ide\" class=\"wp-image-1577\" width=\"768\" height=\"404\" srcset=\"https:\/\/loadfocus.com\/blog\/wp-content\/uploads\/Screenshot-2020-01-14-at-12.13.13-1024x539.png 1024w, https:\/\/loadfocus.com\/blog\/wp-content\/uploads\/Screenshot-2020-01-14-at-12.13.13-300x158.png 300w, https:\/\/loadfocus.com\/blog\/wp-content\/uploads\/Screenshot-2020-01-14-at-12.13.13-768x404.png 768w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/figure>\n\n\n\n<p style=\"text-align:left\"><strong>End to End testing<\/strong> is quite fast when you create tests from the Selenium IDE <a href=\"https:\/\/chrome.google.com\/webstore\/detail\/selenium-ide\/mooikfkahbdckldjjndioackbalphokd\">Chrome Extension<\/a> or <a href=\"https:\/\/addons.mozilla.org\/en-GB\/firefox\/addon\/selenium-ide\/\">Firefox Add-on<\/a>. <\/p>\n\n\n\n<p><strong>Debugging <\/strong>tests, setting breakpoints, running an UI test to a specific test step work out of the box the new version of Selenium IDE.<\/p>\n\n\n\n<p><strong>Test suites<\/strong> are available in order to group previously generated test cases, and exporting your test cases is a click of a button away.<\/p>\n\n\n\n<p><strong>Concurrent execution<\/strong> of test cases is available from the command-line (terminal) and which lowers your execution time.<\/p>\n\n\n\n<p><strong>Multiple selector fallback<\/strong> happens automatically, basically when you click and record a test case and interact with an element, Selenium IDE generated 3-5 fallback selectors, so that in case first selector fails, Selenium IDE automatically verifies the other selectors before failing the test step.<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/loadfocus.com\/blog\/wp-content\/uploads\/Screenshot-2020-01-07-at-12.42.01-1024x626.png\" alt=\"selenium ide\" class=\"wp-image-1574\" width=\"768\" height=\"470\" srcset=\"https:\/\/loadfocus.com\/blog\/wp-content\/uploads\/Screenshot-2020-01-07-at-12.42.01-1024x626.png 1024w, https:\/\/loadfocus.com\/blog\/wp-content\/uploads\/Screenshot-2020-01-07-at-12.42.01-300x183.png 300w, https:\/\/loadfocus.com\/blog\/wp-content\/uploads\/Screenshot-2020-01-07-at-12.42.01-768x470.png 768w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/figure>\n\n\n\n<p>You can have a look in more depth with the new Selenium IDE course created <a href=\"https:\/\/coursinator.com\/course\/selenium-ide-test-automation-tool-with-record-and-playback?id=d5d3dc5d734f921f5a1358d5ce4c43f2\">Understand Selenium IDE Test Automation Tool #seleniumide course<\/a> <\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/coursinator.com\/course\/selenium-ide-test-automation-tool-with-record-and-playback?id=d5d3dc5d734f921f5a1358d5ce4c43f2\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"422\" src=\"https:\/\/loadfocus.com\/blog\/wp-content\/uploads\/Screenshot-2020-01-07-at-12.42.00.png\" alt=\"selenium ide course\" class=\"wp-image-1575\" srcset=\"https:\/\/loadfocus.com\/blog\/wp-content\/uploads\/Screenshot-2020-01-07-at-12.42.00.png 750w, https:\/\/loadfocus.com\/blog\/wp-content\/uploads\/Screenshot-2020-01-07-at-12.42.00-300x169.png 300w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/a><figcaption><a href=\"https:\/\/coursinator.com\/course\/selenium-ide-test-automation-tool-with-record-and-playback?id=d5d3dc5d734f921f5a1358d5ce4c43f2\">Selenium IDE Video Course<\/a><\/figcaption><\/figure>\n<!-- pn-faq --><h2>Frequently Asked Questions<\/h2><h3>What is Selenium IDE good at?<\/h3><p>Capturing a journey quickly. Recording a flow takes minutes and gives you a working draft far faster than writing it by hand.<\/p><h3>Why not keep the recorded test?<\/h3><p>Because it is the worst thing to maintain. The generated locators describe the current page structure and break on the next layout change.<\/p><h3>What is the sensible workflow?<\/h3><p>Record to draft, then export and clean up the locators before it goes into the suite. Treat the recording as a starting point rather than the finished test.<\/p><!-- \/pn-faq --><!-- pn-related-reading --><h2>Related reading<\/h2><ul><li><a href=\"https:\/\/loadfocus.com\/blog\/2014\/06\/how-to-take-snapshots-of-the-browser-using-selenium-webdriver\">How to take screenshots with Selenium WebDriver<\/a><\/li><li><a href=\"https:\/\/loadfocus.com\/blog\/2020\/04\/cypress-the-web-testing-framework-of-the-moment\">Cypress: The Web Testing Framework of the Moment<\/a><\/li><li><a href=\"https:\/\/loadfocus.com\/blog\/2016\/10\/find-all-the-links-on-a-webpage-with-selenium-webdriver-in-java\">Find All Links on a Page With Selenium WebDriver<\/a><\/li><\/ul>","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\"><\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">minutes read<\/span><\/span>Key takeaways Selenium IDE is the fastest way to capture a journey, and the worst way to maintain one. Use it to draft a test, then export and clean up the locators. Recorded selectors break on the next layout change, so treat them as a starting point. Selenium IDE is an open source record and&#8230;  <a href=\"https:\/\/loadfocus.com\/blog\/2020\/01\/using-selenium-ide-record-and-playback-tool\" class=\"more-link\" title=\"Read Using Selenium IDE Record and Playback tool\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":3735,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[48],"tags":[],"class_list":["post-1573","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-test-automation"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/posts\/1573","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/comments?post=1573"}],"version-history":[{"count":0,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/posts\/1573\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/media\/3735"}],"wp:attachment":[{"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/media?parent=1573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/categories?post=1573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/tags?post=1573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}