I am trying to get the return value of the div modal popup dialog. However, I could not get the value by using the
selenium.GetAttribute("id=lblPopUpMessageType");
What I wish to achieve is when I able to get the value then I can catch whether which progress is done.
For example, the code is like below:
<span id="lblPopUpMessageType">error</span> (If i get the "error" value i know it is fail)
or
<span id="lblPopUpMessageType">success</span> (This mean success)
Well, I am not able to get by using the above function. I also tried with Selenium.GetElementIndex().ToString() but not working. I am new to Selenium, any help would be appreciate. Thank you!