Currently, I am in the process of coding Selenium scripts to automate the testing of a signup procedure.
In order to allow the scripts to be reused multiple times without encountering errors due to duplicated key items, I need to increment and store two variables for future sessions.
The challenge lies in the fact that the main variable I need to increase is at the beginning of a text string, making it impossible to simply use suffix++
.
For reasons that are inexplicable but necessary, the email addresses must adhere to a specific format like this:
<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a3fbfbfbfbd7c6d0d7e3c6cec2cacf8dc0ccce">[email protected]</a>
For example, starting with
<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="12232222226677616652777f737b7e3c717d7f">[email protected]</a>
, I would need to increment it to [email protected] on each subsequent run of the script.
While I have experience with automated testing, I consider myself relatively new to Selenium and unfortunately lack any knowledge of JavaScript.