I am currently conducting a website testing using selenium web driver with C#. My main goal is to verify the HttpWebResponse that should return status 200. However, the button I need to test triggers a javascript onclick event. I am seeking advice from those who have experience in dealing with this kind of situation. Below is the HTML code for the button:
<td>
<input id="ctl00_ContentPlaceHolder1_ExportPACEButton" type="submit" tabindex="-1" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$ContentPlaceHolder1$ExportPACEButton", "", true, "", "", false, false))" value="Export as PACE File" name="ctl00$ContentPlaceHolder1$ExportPACEButton"/>
</td>