Popover Window

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
NancyM
Pro Scripter
Posts: 66
Joined: Mon Jul 18, 2016 7:01 pm

Popover Window

Post by NancyM » Mon Jul 18, 2016 9:49 pm

My next problem is as follows. I have a script that is working great until I get to this screen. I'm not sure how to dismiss the window that pops up over the main window. Any ideas on how to dismiss that anonymous looking popover window? I tried to figure out the UI element, but it wouldn't let me do anything with it, using the Wizard.

The image is truncated on the right by the forum, but you can use the link.
Here's what the popover window looks like: http://i.imgur.com/UCoZTTE.jpg
Image

The popover window is the Internet Explorer one nested way down under the Encompass - Build window (bottom line)
http://i.imgur.com/sxW6VW7.jpg
Image

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Popover Window

Post by Marcus Tettmar » Tue Jul 19, 2016 10:29 am

This will be HTML. So you dont want to be using the view system windows tool. Instead use the IE Find Element tool, or WebRecorder. There will be an HTML element which when clicked will hide the DIV. You could issue a click against that using e.g. IETagEventByAttrib.

It is probably just a DIV that is hidden/unhidden and using the IE functions you could probably therefore manipulate the page without hiding it anyway.

But, in short, using the IE functions is the way to go here. It's not a "window" it will be an HTML element within the page.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
JRL
Automation Wizard
Posts: 3531
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Re: Popover Window

Post by JRL » Tue Jul 19, 2016 12:49 pm

What happens if you check the checkbox at the bottom of the window that says: "Do not show this message at startup"?

NancyM
Pro Scripter
Posts: 66
Joined: Mon Jul 18, 2016 7:01 pm

Re: Popover Window

Post by NancyM » Tue Jul 19, 2016 2:23 pm

Cool, thanks! I'll see if I can figure that out. The checkbox probably makes a Ajax call to update a database, I think you still need to click the X to close the window.

Okay, I suspect this is a Windows Form browser window, so I don't have full access to the normal browser functionality like looking at the page source or inspecting elements. What would you recommend for finding out the elements id? Just look for elements of type checkbox and hope there's just one? I guess even more troublesome will be figuring out that X inside the box. Maybe it is just a href...

Whoops, okay, now I see there's a tool that can find an element. Let me see if I can figure that one out. Thanks again!

NancyM
Pro Scripter
Posts: 66
Joined: Mon Jul 18, 2016 7:01 pm

Re: Popover Window

Post by NancyM » Tue Jul 19, 2016 9:29 pm

Well, the IE Element Wizard couldn't find any of those elements, probably because they're deeply nested. Any other ideas? I'm stuck on this. :\

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Popover Window

Post by Marcus Tettmar » Wed Jul 20, 2016 10:13 am

Image Recognition. Soooooo much easier.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

NancyM
Pro Scripter
Posts: 66
Joined: Mon Jul 18, 2016 7:01 pm

Re: Popover Window

Post by NancyM » Wed Jul 20, 2016 1:36 pm

Yup, that's what I finally thought of last night just before I went home. Worked great once I told it to search the entire screen. Thanks for the help!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts