Validate element exist or not exist
Posted: Fri Aug 22, 2014 7:25 pm
Hi Ranorex,
I have a query here In my application when i select say "Advanced Fields" button an "Advanced search" textbox comes up, I have to validate the particular text box exist only when the user click "Advanced Fields" button and vice versa. The advanced search text box is uniquely identified by @id attribute, so if I use only the @id attribute and try to track the object when the "Advanced Fields" button is not clicked I get one result and same result i got when the object is visible to me(when i click the advanced field button), so i added @visible attribute along with the @id attribute to identify the object only when the user clicks the "Advanced Fields" button. So i have x path something like this input[@id="Advanced Search" and @visible ='True'] but I am not sure how to validate the particular element "Advanced Search" doesn't exist when "Advanced Fields" button is not clicked. How can I solve this issue and expect ranorex not to wait for default 2m for the element to not exist?
I have a query here In my application when i select say "Advanced Fields" button an "Advanced search" textbox comes up, I have to validate the particular text box exist only when the user click "Advanced Fields" button and vice versa. The advanced search text box is uniquely identified by @id attribute, so if I use only the @id attribute and try to track the object when the "Advanced Fields" button is not clicked I get one result and same result i got when the object is visible to me(when i click the advanced field button), so i added @visible attribute along with the @id attribute to identify the object only when the user clicks the "Advanced Fields" button. So i have x path something like this input[@id="Advanced Search" and @visible ='True'] but I am not sure how to validate the particular element "Advanced Search" doesn't exist when "Advanced Fields" button is not clicked. How can I solve this issue and expect ranorex not to wait for default 2m for the element to not exist?