Sign in to follow this  
Followers 0
Guest pc1002

How to access modal dialog box?

3 posts in this topic

#1 ·  Posted (edited)

I am trying to write a script to complete all the mandatory fields in a form and submit it successfully. One of the problems I am facing is one of the mandatory fields appears in a popup window (or more precisely a dialog box that doesn't appear as a new window).

When I click on a particular link on the web page, the window.showModalDialog method is called. This dialog box contains a form which contains a drop-down menu. I need to be able to select one of the values from the drop-down menu and then close this dialog box.

Can anyone tell me how to get a handle of the dialog box and then access the form fields.

Edited by pc1002

Share this post


Link to post
Share on other sites



I am trying to write a script to complete all the mandatory fields in a form and submit it successfully. One of the problems I am facing is one of the mandatory fields appears in a popup window (or more precisely a dialog box that doesn't appear as a new window).

When I click on a particular link on the web page, the window.showModalDialog method is called. This dialog box contains a form which contains a drop-down menu. I need to be able to select one of the values from the drop-down menu and then close this dialog box.

Can anyone tell me how to get a handle of the dialog box and then access the form fields.

I wanted to share with you our solution to this problem. Well, its not really a solution but a workaround. Instead of clicking on a link to open the dialog box, we decided to open the dialog box manually using like:

$window = $IE_object.document.parentwindow.showModelessDialog($url)

This allowed us to get a handle on the dialog box.

Share this post


Link to post
Share on other sites

I am trying to write a script to complete all the mandatory fields in a form and submit it successfully. One of the problems I am facing is one of the mandatory fields appears in a popup window (or more precisely a dialog box that doesn't appear as a new window).

When I click on a particular link on the web page, the window.showModalDialog method is called. This dialog box contains a form which contains a drop-down menu. I need to be able to select one of the values from the drop-down menu and then close this dialog box.

Can anyone tell me how to get a handle of the dialog box and then access the form fields.

could you include a screenshot of the autoit window info? probably one for the parent window and the one you want to read from would be best.

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0