<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jim Scott on Medium]]></title>
        <description><![CDATA[Stories by Jim Scott on Medium]]></description>
        <link>https://medium.com/@jimbo.scott?source=rss-7972f7afb4b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Z8eygcxZOwOqYo68Onb0mA.png</url>
            <title>Stories by Jim Scott on Medium</title>
            <link>https://medium.com/@jimbo.scott?source=rss-7972f7afb4b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 20:48:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jimbo.scott/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to fix “Cannot construct KeyEvent from non-typeable key” in Selenium]]></title>
            <link>https://medium.com/@jimbo.scott/how-to-fix-cannot-construct-keyevent-from-non-typeable-key-in-selenium-7e1d5b0aab50?source=rss-7972f7afb4b------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e1d5b0aab50</guid>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[automated-testing]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Jim Scott]]></dc:creator>
            <pubDate>Mon, 07 Feb 2022 08:40:03 GMT</pubDate>
            <atom:updated>2022-02-07T08:40:03.266Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qLSxAM23kZl8742cEPwoOw.jpeg" /><figcaption>Another Selenium compatbility issue</figcaption></figure><p>It seems that the Chrome 98 release broke the compatibility with Selenium.</p><h3>The problem</h3><p>Folks have been reporting a major issue with the send_keys() method:<br><a href="https://github.com/SeleniumHQ/selenium/issues/10318">https://github.com/SeleniumHQ/selenium/issues/10318</a></p><p>It seems that the send_keys() method cannot send certain special characters to the chromedriver, including “@”.</p><p>That means that any test where you’re writing an email address in an input might not work.</p><p>The official recommandation is “Just keep using Chrome 97 for now”, but that’s difficult.</p><p>Chrome doesn’t provide a way to stop the automatic updates from happening.</p><h3>Not the first time</h3><p>This isn’t the first time we’ve seen a major compatibility issue between Selenium, Chrome and chromedriver.</p><p>Who could forget the famous “Timed out receiving message from renderer” error?<br><a href="https://bugs.chromium.org/p/chromedriver/issues/detail?id=3657">https://bugs.chromium.org/p/chromedriver/issues/detail?id=3657</a></p><h3>Open Source Chaos</h3><p>This is a classic example of Open Source Chaos, we start depending on open source components, and our work is affected when compatibility issues appear between these components.</p><p>One of the strongest arguments to use open source components was that you can fix the bugs yourself.</p><p>But that’s just wishful thinking.</p><p>We barely have time to fix our own bugs, and good luck getting approved as a contributor and getting your fix approved.</p><h3>The Outcome</h3><p>And after you spent months on building an overcomplicated Selenium framework, it gets rendered useless, because the folks at Google don’t care about Selenium or functional automated testing in general.</p><h3>The Solution</h3><p>Based on my own experience, it’s best not to rely on such open source components, because you’ll end up getting stuck for months or even more.</p><p>The alternative would be to use a platform like <a href="https://endtest.io/"><strong>Endtest</strong></a><strong>.</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FusUEr0KUaKw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DusUEr0KUaKw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FusUEr0KUaKw%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/cee085387ac19e7715eaa3347973cf1a/href">https://medium.com/media/cee085387ac19e7715eaa3347973cf1a/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e1d5b0aab50" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 Top Automated Testing Tools for 2022]]></title>
            <link>https://medium.com/@jimbo.scott/5-top-automated-testing-tools-for-2022-5bfaa2ef3c27?source=rss-7972f7afb4b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5bfaa2ef3c27</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Jim Scott]]></dc:creator>
            <pubDate>Thu, 16 Dec 2021 10:01:29 GMT</pubDate>
            <atom:updated>2021-12-16T10:01:29.575Z</atom:updated>
            <content:encoded><![CDATA[<p>As a Software Development Engineer in Test, I actually enjoy reviewing test automation tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w6udVOyTj6LEM09eOpT8tQ.png" /><figcaption>5 Top Automated Testing Tools for 2022</figcaption></figure><p>We use tools because we want to get the job done, without losing our minds or breaking the bank.</p><p>But how can we make sure that we’re evaluating a set of tools correctly?</p><p>We need a clear set of objectives, and to measure how each tool can help us reach those objectives.</p><p>The 3 objectives:<br>✔️ Ability to create automated tests for a complex web application.<br>✔️ Ability to execute these tests on all major browsers.<br>✔️ The tests should be easy to maintain.</p><p>Most of us have these objectives when evaluating a test automation tool.</p><h3>1. Endtest</h3><p>I really enjoy working with <a href="https://endtest.io/"><strong>Endtest</strong></a>.</p><p>It’s part of a new generation of Intelligent Test Automation tools.</p><p>That means that you don’t have to stitch together different libraries and services in order to create a test automation framework.</p><p>Worth mentioning that it has a built-in test recorder.</p><p>After you create the tests, you can run them on their cross-browser cloud:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*_KF-5oGwrGtQ30bYsqYqTA.png" /><figcaption>Execute a test on the Endtest cross-browser cloud</figcaption></figure><p>A pleasant surprise was that I’m able to even execute the tests in different Geolocations around the world:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*hI9C7yL2JTHk8Qe23WHEgQ.png" /><figcaption>Selecting a Geolocation when running a test on the Endtest cross-browser cloud</figcaption></figure><p>A test case will be made up of different steps.</p><p>Each step is defined by an action, and there’s a long list to choose from:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1ENOx_ZiYvh_WwJLwuY2bA.png" /><figcaption>Actions in Endtest</figcaption></figure><p>It seems to have all the building blocks of a scripting language:<br>- variables<br>- reusable components<br>- if statements<br>- else statements<br>- loops<br>- calls to external services <br>- database connections</p><p>Having all those options means that you should be able to automate any scenario.</p><p>On my side, I was able to automate even a Sign Up flow that requires email and SMS validation.</p><p>In our web application, we have a number of iframes and we even need to switch between multiple browser tabs.</p><p>Endtest was able to handle those scenarios.</p><p>Here’s what the results look like for a basic test execution:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AWpspTXVQWzGYPlWaCTeig.png" /><figcaption>Test execution results in Endtest</figcaption></figure><p>And yes, it ticks all the boxes:</p><p>✅ Ability to create automated tests for a complex web application.<br>✅ Ability to execute these tests on all major browsers.<br>✅ The tests should be easy to maintain.</p><p>I’d say the strongest point is that the tests are easy to maintain, but I also like the fact that it’s fast.</p><h3>2. Selenium</h3><p><a href="https://github.com/SeleniumHQ/selenium"><strong>Selenium</strong></a> was the first test automation tool I ever heard of.</p><p>And this was back in 2012.</p><p>I’ve used it for a number of years and had good results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rjnmzyq_Rd_8sboqSaQv1Q.png" /><figcaption>Selenium Java Code</figcaption></figure><p>Selenium works with the WebDrivers developed by the browser vendors themselves.</p><p>That means you have to ocasionally download and update your chromedriver, geckodriver, edgedriver, etc.</p><p>I love the fact that Selenium tests can be executed on all major browsers, including Safari.</p><p>Selenium can be coupled with Selenium Grid.</p><p>You get to decide if you install all those browsers locally or if you use a Selenium Grid provider.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vyOc4E9nlIUCda3pJSkOiQ.png" /><figcaption>Selenium Grid Architecture</figcaption></figure><p>One disadvantage of using Selenium Grid is that it will make your tests slower, since each request will consume time to go through the network and to be processed.</p><p>Selenium can perform any action related to web elements and pages, but it can’t send API requests or connect to databases.</p><p>It also lacks some of the built-in components that <a href="https://endtest.io/">Endtest</a> has, like the functionalities for email testing and SMS testing.</p><p>That means you’ll still need to stitch together some libraries and services in order to perform end-to-end testing.</p><p>The major downside of using Selenium is that you need to write a lot of code, and that can consume a lot of time and generate a lot of discussions.</p><p>Due to that fact, it seems Selenium doesn’t fully check the last box:</p><p>✅ Ability to create automated tests for a complex web application.<br>✅ Ability to execute these tests on all major browsers.<br>❌ The tests should be easy to maintain.</p><h3>3. Playwright</h3><p>I love the fact that Microsoft started investing more in open source technologies.</p><p>And <a href="https://github.com/microsoft/playwright"><strong>Playwright</strong></a> is a prime example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ErymJ4UdfyYwlLddy2HTaA.png" /><figcaption>Sample Playwright Code</figcaption></figure><p>Playwright uses browser remote debugging protocols (e.g. CDP for Chromium) over the process pipe.</p><p>The syntax is a bit easier to use than Selenium.</p><p>By using the Playwright API, you can interact with the browser and elements from a web application.</p><p>It also support mocking, which is really cool.</p><p>You can intercept and parse requests with it, but you can’t send requests.</p><p>That means that you can’t really use it to properly test an API.</p><p>I do think the Playwright Inspector is really cool:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vCJC1nMY2oAQ_fipdUvm1Q.png" /><figcaption>Playwright Inspector</figcaption></figure><p>You’ll still have to paste together different libraries in order to get an end-to-end testing flow.</p><p>If I was doing this review 1 year ago, I would have been upset that Playwright doesn’t support running tests on Internet Explorer 11.</p><p>But since Internet Explorer 11 is no longer supported by Microsoft, I can just forget about it.</p><p>Safari is somehow supported, in the sense that they support WebKit, which isn’t exactly the same as running a test on an Safari browser.</p><p>Here’s how it did:</p><p>✅ Ability to create automated tests for a complex web application.<br>✅ Ability to execute these tests on all major browsers.<br>❌ The tests should be easy to maintain.</p><p>Unfortunately, even with a simplified syntax, the tests are still a bit difficult to maintain.</p><h3>4. Puppeteer</h3><p><a href="https://github.com/puppeteer/puppeteer"><strong>Puppeteer</strong></a> is a Node library that provides a high-level API to control headless Chrome over the DevTools Protocol.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NQRGBNvcUSC3BSzRM_maqw.png" /><figcaption>Sample Puppeteer Code</figcaption></figure><p>Now, we know Google built some great products, like Google Search and Gmail.</p><p>But they also built tons of products that ended up in the <a href="https://gcemetery.co/">Google Cemetery</a>.</p><p>It’s still too early to tell in which category Puppeteer will be.</p><p>We can clearly see the mocha-flavored syntax.</p><p>Just like with most frameworks, we can identify the elements by using different attributes.</p><p>Our team played with both Playwright and Puppeteer, and I wouldn’t see a clear reason why someone would choose Puppeteer right now.</p><p>The lack of community support for Puppeteer might be an issue, since you may struggle to find answers on StackOverflow or Reddit.</p><p>The cross-browser support is decent, but not great, since it only works on Chrome, Edge and Firefox.</p><p>Here’s how it did:</p><p>✅ Ability to create automated tests for a complex web application.<br>❌ Ability to execute these tests on all major browsers.<br>❌ The tests should be easy to maintain.</p><h3>5. Cypress</h3><p>I heard about the <a href="https://www.cypress.io/ambassadors/"><strong>Cypress</strong></a> hype.</p><p>Is it really the Selenium killer?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ig6fHXK6P3TPmboLmiGD7Q.png" /><figcaption>Sample Cypress Code</figcaption></figure><p>The first blow was when I found out that I have to pay in order to use the full capabilities and put my tests in a CI/CD pipeline.</p><p>I might be old-fashioned, but when I see an Open Source library, my expectation is that I can use it for free, without any restrictions.</p><p>Turns out you can’t really use without the Cypress Dashboard, which is a paid component.</p><p>Unfornately, I wasn’t able to automate my test scnearios with Cypress, due to the following limitations:</p><ul><li>Cypress cannot test multiple domains in a single test</li><li>Cypress cannot test in multiple browser tabs</li><li>Cypress can’t reliably detect and interact with elements from iframes</li></ul><p>This raised some questuons on my side:</p><p>I never saw anyone using Cypress for a complex end-to-end test.</p><p>I only saw folks using it for clicking on a few buttons.</p><p>So, here’s how Cypress did:</p><p>❌ Ability to create automated tests for a complex web application.<br>❌ Ability to execute these tests on all major browsers.<br>❌ The tests should be easy to maintain.</p><p>Don’t get me wrong, it might be great for Developers that only want to test a basic scenario on Chrome.</p><p>But I think it’s just not ready for real-life complex testing scenarios.</p><h3>Other tools</h3><p>If you know other tools worth mentioning, feel free to write about them in the comments.</p><p>I will do my best to reply to each comment.</p><p>It doesn’t matter if the tool you want to suggest is open source or proprietary, it just needs to get the job done.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5bfaa2ef3c27" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>