Forum Discussion
shankar_r
Community Hero
Hi,
You have not given any specific type of object that you want to check. But,
you can check using below stuff, yourObject will be period_name.Item(k)
do { Indicator.PushText("Period Name is NULL") }while (yourObject != null)
shane_manjunath
8 years agoOccasional Contributor
Thanks shankar and any idea how to check if attribute value is NULL or NOT?
var period = Aliases.browser.FindChild("Name", 'Panel("tabPeriod")', 99);
var period_name = period.getElementsByClassName("dxtc-link");
period_name.Item(k).textContent
textContent is the attribute here
- shankar_r8 years agoCommunity Hero
Hi,
It's pretty simple,
function test() { var period = Aliases.browser.FindChild("Name", 'Panel("tabPeriod")', 99); var period_name = period.getElementsByClassName("dxtc-link"); do { //blah blah}while( period_name.Item(k) != null) if(period_name.Item(k).textContent != null) { Log.Message("It is not null") } else { Log.Error('It is null") } }
Related Content
- 11 months agoIrinaManea
- 8 years agoYarnos
- 4 years agoLRuoc
- 6 years agoDKumar04
Recent Discussions
- 6 hours agoSubhraDas
- 12 hours agoJacobjacob44