Safari: Click a button (with java script?)

Hi and happy Easter!

Mostly I can handle click-links in Safari with the KM-Macro like “Click Safari Link”. But sometimes there’s a onclick javascript process behind and the link isn’t shown in the KM-Macro. I’am not so familiar with javascript.
So my question is, if it’s possible to click the “Suchen”-(search)-button in the following html code via “Execute a JavaScript in Safari”:

<div style="float: right;">
            <input type="button" name="ctl00$CPH$ctl00$patientSearch1$btnAdvancedSearch" value="Suchen" onclick="javascript:__doPostBack('ctl00$CPH$ctl00$patientSearch1$btnAdvancedSearch','')" id="ctl00_CPH_ctl00_patientSearch1_btnAdvancedSearch" class="moBtn s">
            <input type="button" name="ctl00$CPH$ctl00$patientSearch1$btnAdvancedReset" value="Löschen" onclick="javascript:__doPostBack('ctl00$CPH$ctl00$patientSearch1$btnAdvancedReset','')" id="ctl00_CPH_ctl00_patientSearch1_btnAdvancedReset" class="moBtn s">
        </div>

Unfortunately I can provide the link to the website, because it’s a protected login area with sensitive data.

take a look at this: Click item on Chrome or Safari page by XPath

hi,

Thank you for the link. I will try to utilize xpath!