david_quick
12 years agoOccasional Contributor
Accessing the DOM
I'm attempting to access the DOM (see the object in the attached screenshot) but using the below script returns no items:
Set page = Sys.Browser("iexplore").Page("*")
Set objError1 = page.contentDocument.getElementsByTagName("gritter-item")
Set objError2 = page.contentDocument.getElementsByClassName("gritter-item")
Set objError3 = page.contentDocument.getElementsByTagName("gritter-title")
Set objError4 = page.contentDocument.getElementsByClassName("gritter-title")
I can access the object using FindAllChildren but I have to build a delay into the script to give the error message time to display on screen:
delay (500)
arrProperties = Array("ObjectType","contentText")
arrValues = Array("Panel","*JavaScript Error*")
arrObjects = Sys.Browser().Page("*").FindAllChildren(arrProperties, arrValues,20000)
Can anyone help?
Set page = Sys.Browser("iexplore").Page("*")
Set objError1 = page.contentDocument.getElementsByTagName("gritter-item")
Set objError2 = page.contentDocument.getElementsByClassName("gritter-item")
Set objError3 = page.contentDocument.getElementsByTagName("gritter-title")
Set objError4 = page.contentDocument.getElementsByClassName("gritter-title")
I can access the object using FindAllChildren but I have to build a delay into the script to give the error message time to display on screen:
delay (500)
arrProperties = Array("ObjectType","contentText")
arrValues = Array("Panel","*JavaScript Error*")
arrObjects = Sys.Browser().Page("*").FindAllChildren(arrProperties, arrValues,20000)
Can anyone help?