Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devalex88/6c28c9b14acc0d24c4036231ccd84f1c to your computer and use it in GitHub Desktop.
Save devalex88/6c28c9b14acc0d24c4036231ccd84f1c to your computer and use it in GitHub Desktop.
KR's chooseOkOnNextConfirmation https://forum.katalon.com/discussion/5871
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<title>Choose OK on JavaScript's confirm()</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Choose OK on JavaScript's confirm()</td></tr>
</thead>
<tbody>
<tr><td>open</td><td>https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_confirm<datalist><option>https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_confirm</option></datalist></td><td></td>
</tr>
<tr><td>selectFrame</td><td>index=0<datalist><option>index=0</option></datalist></td><td></td>
</tr>
<tr><td>chooseOkOnNextConfirmation</td><td><datalist><option></option></datalist></td><td></td>
</tr>
<tr><td>click</td><td>//button[@onclick='myFunction()']<datalist><option>//button[@onclick='myFunction()']</option><option>//button</option><option>css=button</option></datalist></td><td></td>
</tr>
<tr><td>assertConfirmation</td><td>Press a button!<datalist><option>Press a button!</option><option>Press a button!;;;</option></datalist></td><td></td>
</tr>
</tbody></table>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment