Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Search on an Internet Explorer App Object

I have a InternetExplorer.Application

I am creating an automation and one of the pages I opened, opened a dialog that looks like a new tab, but on the same process (I checked it by the task manager >> process tab that the same process just consumes more RAM) and I don't find the document if that dialog application.

Even in the shell.application In the windows it isn't there.

I want help to find it

I thought to do some recursion on the $ie members to find a word that appears there and if it find a path post that path.

Thank you in advance

like image 277
Asaf Shazar Avatar asked Jan 06 '16 19:01

Asaf Shazar


People also ask

How do I enable Web components in Internet Explorer?

To turn add-ons onOpen Internet Explorer, select the Tools button , and then select Manage add-ons. Under Show, select All add-ons. Select the add-on, Enable, and then select Close.

Where is Internet Explorer shortcut?

Use the Internet Explorer shortcut from the Start Menu In Windows 10, open the Start Menu and go to All apps -> Windows Accessories. There, you'll find a shortcut for Internet Explorer.

Is Internet Explorer still supported?

After 25+ years of helping people use and experience the web, Internet Explorer (IE) is officially retired and out of support as of today, June 15, 2022. To many millions of you, thank you for using Internet Explorer as your gateway to the internet.


1 Answers

It sounds like the dialog box is a form within the same IE instance. It would be a document element.

$ie.document.documentelement.all | foreach {$DE = $_ ; $DE | where {$_.innerhtml -match "My search arguement"}| foreach{$DE|select uniqueID}}

Once you identify the uniqueID then you can use $ie.Document.getElementById('ms__id14')

like image 59
Kirt Carson Avatar answered Nov 16 '22 01:11

Kirt Carson