Webelement validation in user code

Ask general questions here.
Bitan2009
Posts: 1
Joined: Thu Oct 17, 2019 3:40 pm

Webelement validation in user code

Post by Bitan2009 » Thu Oct 17, 2019 3:46 pm

Hi ,
I need to validate if a button is available validate the inner text.
If it is not available ignore it.

i tried below options and having issues.

Repo.buttoninfo.exists(200)

In this case sometimes the element is getting discovered sometimes not.And taking a lot of time.

If (Repo.button.enabled){
}

In this case if the button is available it is passing if it is not available,it is serarching the object and instead of going elae part it is failing.
Please help me ASAP

User avatar
qwertzu
Posts: 273
Joined: Wed Jan 25, 2017 11:08 am

Re: Webelement validation in user code

Post by qwertzu » Fri Oct 18, 2019 12:55 pm

hi,

with "available" do you mean if the button is enabled, or do you mean if the button even exists?
Can you upload a Ranorex Snapshot of the button?

regards, qwertzu