Navigate JavaScript link

2019-06-10 08:57发布

I am trying to click on a link on a web page that will navigate me to another web page and this is a snapshot of the element (I think it is JavaScript link):

dom

I have tried another part using the same trick but doesn't work this time

dom

I tried .document.getElementById("theBttnbobjid_1518772347342_dialog_submitBtn").Click

and

.Navigate "javascript:void(0)"

How can I navigate to the desired web page using this element?

1条回答
爷的心禁止访问
2楼-- · 2019-06-10 09:48

I have tried this line and it works fine for me

ie.Navigate "javascript:__doPostBack('ctl00$LinkButton1','')"

Thank you very much

查看更多
登录 后发表回答