Hi All,
I am trying to auto fetch a screenshot on webpage using vbscript. I am
stuck at a point where the vbscript is not able to identify an element which i
need to click. Is there any way to identify the element other elementId like
xpath/title/value/name which are much more easily identified in selenium webpage automation. Here is my script :
Dim IE
Dim Helem
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = 1
IE.navigate "https://mylink/logon.jsp"
Do While (IE.Busy)
WScript.Sleep 3
Loop
Set Helem = IE.document.getElementByID("overridelink")
Helem.Click
Do While (IE.Busy)
WScript.Sleep 3
Loop
Set Helem = IE.document.getElementById("j_username")
Helem.Value = "user123"
Set Helem = IE.document.getElementById("j_password")
Helem.Value = "pass123"
IE.document.getElementById("other").Click
Do While (IE.Busy)
WScript.Sleep 10
Loop
IE.document.getElementById("elementId").Click
The issue is occuring where the last element is not being idenified using Id.
Aucun commentaire:
Enregistrer un commentaire