How can I click in the "detailed" button listed bellow ?
<span data-segment-id="bererf44b-be45-4514-922a-0fff0585gb">
<input type="radio" id="dccd7242-38d2-4f54-4841-73c4b48a2f56-view-selector-bererf44b-be45-4514-922a-0fff0585gb" name="dccd7242-38d2-4f54-4841-73c4b48a2f56-view-selector" value="detailed">
<label for="dccd7242-38d2-4f54-4841-73c4b48a2f56-view-selector-bererf44b-be45-4514-922a-0fff0585gb">Detailed</label>
</span>
This work but I have to enter manually the encrypted id
tell application "Safari Technology Preview" to ¬
do JavaScript ¬
"document.querySelectorAll(\"[for=\\\"dccd7242-38d2-4f54-4841-73c4b48a2f56-view-selector-bererf44b-be45-4514-922a-0fff0585gb\\\"]\")[0].click();" in current tab of window 1
UPDATE :
Most of the HTML is dynamic, and I can't very relie on it.
<div class="center">
<div class="segmented-control view-selector component" id="THIS_IS_DYNAMIC">
<input type="radio" id="THIS_IS_DYNAMIC" name="THIS_IS_DYNAMIC" value="basic">
<label for="THIS_IS_DYNAMIC">Basic</label>
</span><span data-segment-id="THIS_IS_DYNAMIC">
<input type="radio" id="THIS_IS_DYNAMIC" name="THIS_IS_DYNAMIC" value="detailed">
<label for="THIS_IS_DYNAMIC">Detailed</label>
</span></div>
</div>