Jump to content

Detect Jquery Modal error popup


mahsaad
 Share

Recommended Posts

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

Link to comment
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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
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

Link to comment
Share on other sites

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
Link to comment
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

Link to comment
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,

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...