I regularly use a web app from Invisalign® to set up orthodontic cases. I use Keyboard Maestro to make keyboard shortcuts within the app by activating JavaScript.
An example of the JavaScript triggered by keyboard maestro:
document.getElementById('myButton').click();
The web app was recently updated and there is no longer a button ID. Thus, the getElementByID is no longer functioning.
I have tried the following but it does not work:
document.getElementByClass('myClass').click();
(I have tried c01143 and c0012)
An example of the HTML for the page is:
<div class='c0012'>
<button type="button" tabindex="-1" data-qa-name="lower" data-qa-toggled="false" class="c0180 c01149 c01151">
<div class="c01143">
<svg class="c0189 c0191" viewBox="0 0 24 24"><path d="M2,13 L22,13 L22,16 L2,16 L2,13 Z M8,8 L16,8 L16,11 L8,11 L8,8 Z"></path></svg>
</div>
<span class="c01142">Lower</span>
</button>
</div>
I have also tried:
document.getElementBydata-qa-name('lower').click();
That also doesn't work. Hopefully someone can help out with what might be a very simple solution. Although I know some HTML and CSS my JavaScript is almost nonexistent.