Forum Discussion

tanvi_agarwal's avatar
tanvi_agarwal
Occasional Contributor
13 years ago

How to read text content from the sibling object?

Hi,



Please could someone tell me how to read text content from the sibling object as the sibling object has nothing unique.



For eg: If I have a website where I can purchase some books.

Then in my shopping cart, I want to grab the total price.

 So the last line reads as Final Price $200

$200 doesnot have a unique propertly hence I need to use Final Price.



My code currently says:

Aliases["browser"]["page1]["Find"]("textContent","Total price",1000);

var control2=control["nextSibling"];

 

Please could someone tell me how to proceed further. I am using C#.

Thanks,

Tanvi





No RepliesBe the first to reply