Sign in to follow this  
Followers 0
mahsaad

Detect Jquery Modal error popup

8 posts in this topic

Hello all,

I'm new to the forum. If this has been asked before, i apologize in advance

I looked on Google and the Autoit forum for such issue, the ones i found are kind of related

I'm building a macro to use at work for a web application to fill form input fields

The web application will run only on IE

Filling the input fields works perfect

Assuming that i'm filling the form in the web page manually, if i miss a field and i hit submit, a Jquery modal popup error appears to tell me that i missed the field x (it's the type of error popup that grey out the webpage when it appears)

My question is: Is it possible with Autoit to detect such popup?

Using the Autoit info tool, doesn't help

WinGetText and WinGetTitle and all those command, doesn't help

I need to verify if the popup is available before getting to the next phase in the web application/autoit script

Any suggestions?

Thanks in advance

Share this post


Link to post
Share on other sites



Hello guys

Anyone??

Thanks

Share this post


Link to post
Share on other sites

Looks like nobody has an answer. Search the forum for "Jquery popup" and you will only find a few threads. Most of them with no reply or final solution.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Thanks Water,

I'll look for that, hopefully someone will have a solution/answer

Regards,

Share this post


Link to post
Share on other sites

Such popups can be created in several ways. If it is a strict jquery-style object, it will be inline HTML on the page. DebugBar will help you figure out what the HTML element(s) are.

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Hi Dale,

Thanks for the reply

I installed Debugbar and here's what i got regarding the popup HTML code:

<TABLE id=DivTable class="DIVPopup ResizablePopup" cellSpacing=0 cellPadding=0><TBODY>

<TR class="DIVPopupTitleBar DIVDraggable">

<TD id=title_0 noWrap align=left>

<DIV class=title>Remedy User - Error&nbsp;&nbsp;&nbsp;</DIV><BUTTON id=ardivcl class="Close right" onclick="if (getOpenDIVPopup_NS('0')) getOpenDIVPopup_NS('0').OnCancel();"></BUTTON></TD></TR>

<TR>

<TD class=DIVPopupBodyNoBorder><IFRAME style="WIDTH: 100%; HEIGHT: 100%" id=1353946873307P src="https://itsm-uat-mt.cgi.com/arsys/resources/html/MessagePopup.html" frameBorder=0></IFRAME></TD></TR></TBODY></TABLE>

It looks it has to do with an iFrame, i'm not sure if IE.au3 handles iFrames or if there are any commands related to iFrames

Regards,

Edited by mahsaad

Share this post


Link to post
Share on other sites

Scan the IE function list in the helpfile... you'll see them.

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

Thanks Dale,

I don't know how i didn't see the iFrame commands in the help even thought the help window was in front of my face the whole day

I will see if those commands will help resolving my issue, if i found one, i'll post it here

Regards,

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