Jump to content

Recommended Posts

Hi All,

I am using selenium to automate the website. There is java script pop which is coming after clicking on button. I want to click first on "CONFIRM" button and the handle this pop up thru auoit script.

<tr>

<td>

<form id="theForm2" onsubmit="return checkSubmit()" action="/AdminWeb/com/primustel/admin/presentation/guadmin/custMgt/cancelPageFlow/checkDID.do" method="post" name="confirmCancelForm">

post-69145-0-20477600-1325076217_thumb.jpost-69145-0-20477600-1325076217_thumb.j

<input type="image" src="/AdminWeb/resources/images/buttons/confirm.gif">

</form>

<script type="text/Javascript" language="Javascript">

<!--

// Build the netui_names table to map the tagId attributes

// to the real id written into the HTML

if (netui_names == null)

var netui_names = new Object();

netui_names.theForm2="theForm2"

-->

</script>

Please help.

Thanks,

Rakesh

Link to post
Share on other sites

Thanks Sticky for replying.

Yes after clicking on button i want to handle/click on OK or cancel using autoit.

I tried this :

AutoItSetOption("WinTitleMatchMode","2")

$title = WinGetTitle("[active]") ; retrives whole window title

WinActive($title);

send("{TAB}")

Send("{ENTER}")

but while that popup is active autoit returns main page as $title not the pop up.

Thanks,

Link to post
Share on other sites
  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...