Forum Discussion
Colin_McCrae
11 years agoCommunity Hero
Just out of curiosity, I did give this method a quick try. It's not one I use normally. And having tried it, I doubt I ever will!
So ....
I assigned a webpage to a variable - Set obj = sys("browser").page("blah")
I then tried using the findId method on the stored page - Set findObj = obj.FindId(<id No.>)
I tried searching for a couple of object further down the hierarchy on the page.
I can't get it to work. At all.
Using IE - it seems to return an object. But the object is empty. ID's do seem to be present and correct in IE.
Using Chrome - Nothing. Which is not surprising as Chrome is showing "0" for the ID for all object on the page for me!
(I used the object spy against the same page in both browsers to determine the ID's to search for)
Conclusion - I have no idea whats going on with your object! (If it's even finding it - I would like you to confirm you have actually put in a break point and inspected the result of your search)
So ....
I assigned a webpage to a variable - Set obj = sys("browser").page("blah")
I then tried using the findId method on the stored page - Set findObj = obj.FindId(<id No.>)
I tried searching for a couple of object further down the hierarchy on the page.
I can't get it to work. At all.
Using IE - it seems to return an object. But the object is empty. ID's do seem to be present and correct in IE.
Using Chrome - Nothing. Which is not surprising as Chrome is showing "0" for the ID for all object on the page for me!
(I used the object spy against the same page in both browsers to determine the ID's to search for)
Conclusion - I have no idea whats going on with your object! (If it's even finding it - I would like you to confirm you have actually put in a break point and inspected the result of your search)