DOM Programming - 0(zero) getting returned
I have a webpage which I am reading through DOM programming. It works well everywhere except few nodes where I get the node value as 0 but the node has some non-zero value.
Sample Code :-
Below the nodevalue for "width" attribute is coming out to be 0 for some cases. Any help would be appreciated.
Set Doc = Browser(Browser1).Page(Page1).Object.getElementsBy TagName("Img")
For i=0 to Doc.length-1
Re: DOM Programming - 0(zero) getting returned
It might happen that the image widdh is not specified. i am just guessing.
If you just want to check out the properties of particular element from your page, you can use childobjects with some properties.