Search code examples
c#powershellautomationmessageboxinvocation

Powershell - Automate website popup


I am currently working on an automation project.

Mainly everything is coded in powershell as the project involve AD, Exchange etc.

Last part involves integration to a website to fill a form. I have used document.getElementByID() and everything is working perfectly, but when I click the last button: Approve a popup shows up:

Window text: Message from webpage Text: Are you sure? Buttons: OK, Cancel

My question is, how can I answer a Messagebox generated by website?

I've looked through the DOM Explorer but can only find the Approve button, no child elements or anything.

Any help would be appreciated.


Solution

  • thanks DavidG, i figured it was all i java.

    Found my way through the code and got i all working by simply ignoring the popup message and go directly to next step.