<?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 Yasmin Salem on Medium]]></title>
        <description><![CDATA[Stories by Yasmin Salem on Medium]]></description>
        <link>https://medium.com/@yasminsalem?source=rss-d70a8bda95ca------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ZwUvxbf03oGRb3j07JgdGw.png</url>
            <title>Stories by Yasmin Salem on Medium</title>
            <link>https://medium.com/@yasminsalem?source=rss-d70a8bda95ca------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 11:13:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yasminsalem/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[My Journey with the Accessibility Identifiers for SW Automation Testing]]></title>
            <link>https://medium.com/@yasminsalem/my-journey-with-the-accessibility-identifiers-for-sw-automation-testing-1276d1ae808c?source=rss-d70a8bda95ca------2</link>
            <guid isPermaLink="false">https://medium.com/p/1276d1ae808c</guid>
            <dc:creator><![CDATA[Yasmin Salem]]></dc:creator>
            <pubDate>Thu, 10 Aug 2023 09:03:48 GMT</pubDate>
            <atom:updated>2023-08-10T09:03:48.659Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*KFf7pNg10co-yRQ7Iq_8bQ.jpeg" /></figure><blockquote>How often have you struggled with adding XPath locators to your code?<br>How many times have your automated tests failed because of flakiness?</blockquote><p>So, check this out :)</p><p>In my role as a Mobile Test Automation Engineer, I usually need accessibility identifiers to automate robust tests.<br>However, adding them can be challenging if you’re unfamiliar with certain programming languages, such as Swift.</p><p>that’s why a couple of months ago, I developed a process in my company to determine the most effective method for adding accessibility identifiers.</p><ol><li>I created a pattern that my development team can follow to add unique identifiers.</li><li>Whenever we implement a new feature, I always ask the developers to add them at that stage since it&#39;s quick and effortless.</li><li>Next, I verified that they had added them correctly.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/246/1*tDzGGAMPVm5ijDXs-d5jig.gif" /></figure><h4>Let’s now talk about creating unique Accessibility identifiers</h4><p>1. Of course, you can use any pattern or value but make sure they are understandable to everyone and clearly convey the identifier’s purpose.</p><p>2. <strong>Are you interested in knowing which pattern is considered the best?</strong><br>Based on my preferences, the pattern that works best for me is the following:<br><em>Pattern: {screenName}_{nameAndTypeOfElement}</em><br>Of course, I wanted to make some modifications to better suit the dynamic views or values, resulting in the following design:<br><em>Pattern:{screenName}_{nameAndTypeOfElement}_{dynamicValue}</em></p><p><strong>Example 1</strong>: If you need to add an identifier for the mail text Field in the login screen so the identifier value would be like the following:</p><pre>login_mailTxtField</pre><p><strong>Example 2</strong>:If you need to add a dynamic countdown timer identifier on the home screen so identifier value would be like the following:</p><pre>home_counterCell_{dynamicValue}</pre><p>and the above dynamic value could be for example <strong>02:00:00</strong>.</p><p><strong>3. Can the identifier value be the same across all platforms?</strong><br>If you have a common code, you may consider using the same identifier value for all platforms. However, the decision ultimately depends on the developers and the feasibility of this approach.</p><p>4. Surely you will find repetitive elements on different screens, and you can try to collect them in one place to avoid the identifiers repetition.</p><h4><strong>How </strong>can <strong>the developers find the correct identifier value for a specific element?</strong></h4><p>First, As an Automation Engineer you should store the values of the identifiers in a clear way to avoid confusion so, there are several options:</p><p>For example:</p><ul><li>you can store them in any design tool like Figma or</li><li>create a simple table on a ticket in any test management tool or</li><li>you can export the designs as a PDF and simply tag them with your identifiers.</li></ul><h4><strong>Validation</strong></h4><p>You can validate the identifiers normally, or the developers can include you in their pull requests to make sure they add them correctly (Before merging the PRs).</p><p>Looks like a plan, right? <br>Yes, and you can consider this as part of the <strong>“Definition of Done”</strong> for each feature or task.</p><p>After all, I could say that’s teamwork because it’s not up to one person and that lead us to a better quality.</p><p><strong>Have a great testing day!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1276d1ae808c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>