0

URL-

<input type="image" src="/live_market/resources/images/gobtn.gif" alt="btn" onclick="goBtnClick('stock');" style="cursor: pointer">

I am trying to click the go button.

IE.document.getElementById("underlyStock").Value = "ACC"

IE.document.all.Iteam(stock).FireEvent ("onclick")    ' not working
IE.document.querySelector("goBtnClick('stock')").Click 'not working

1 Answer 1

1

The selector you want is probably:

input[type=image][onclick]

You can invoke the onclick function directly:

document.querySelector("input[type=image][onclick]").onclick()
Sign up to request clarification or add additional context in comments.

1 Comment

Thank you sir this code is working fine- IE.document.querySelector("input[type=image][onclick]").onclick

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.