0

I am hoping I'm phrasing this question correctly.

We have an internal ticketing system that uses an ASP page for creating a new ticket. Using PowerShell, I can set the values of certain DropDown boxes correctly. However I'm having a problem where an embedded VBScript is supposed to run if that DropDown box is manually clicked/changed based on the .Value which isn't being read since PowerShell programmatically set the value.

Can PowerShell do this? Yes, I know there is a community extension for web-testing, I'd rather rely on built-in commands in PowerShell to simplify things as much as possible for distributing my script.

The ASP page source contains <Script Language="VBScript"> 'Client Side sub procedures

I'm guessing the Sub routine will run if the DropDown box contains a .Value as selected by the user. Could I get PowerShell to run this VBScript Sub routine? Or run the onchange= element?

1 Answer 1

0

maybe something like this would help or push you in the right direction?

Click a hyperlink using powershell

Sign up to request clarification or add additional context in comments.

1 Comment

I'm not very sure PowerShell can interact with the embedded javascript element onchange that's part of a TextBox. At least I have not found any examples documenting such. Thinking out loud, I might only have to set focus there then set focus some place else.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.