GetValue when Element Tag could change
Posted: Mon Sep 14, 2015 7:29 pm
Hi All,
I am running into an issue trying to getvalue of a specific element. The element has the chance to either be innerText or TagValue depending upon how the number is stored. I would like to create a method to first check what tag the number is stored in and then get that value based on that tag. I thought this could be done using an if statement to check if either tagvalue or innertext is null or if either exists, but I am striking out. Any thoughts?
Thanks,
Keenan
I am running into an issue trying to getvalue of a specific element. The element has the chance to either be innerText or TagValue depending upon how the number is stored. I would like to create a method to first check what tag the number is stored in and then get that value based on that tag. I thought this could be done using an if statement to check if either tagvalue or innertext is null or if either exists, but I am striking out. Any thoughts?
Thanks,
Keenan