shane_manjunath
8 years agoOccasional Contributor
how to check if the object attribute value is NOT NULL
In my test script i have a object period_name which has multiple Item.I just want to fetch the textContent of these items
period_name.Item(k).textContent
However when running the test case i have noticed sometimes it returns the error that the object is NULL
I want to be able to check if the object attribute has a value or not before using it as follows:-
do {
Indicator.PushText("Period Name is NULL")
}while ( Check to see if object is still NULL)
var prd_name = period_name.Item(k).textContent