Forum Discussion

abrar22's avatar
abrar22
Frequent Contributor
10 years ago

How to verify if certain field is not there on window

HI,

 

I want to verify that certain field doesn't exist on window. Is there any way do that?

 

Thanks

6 Replies

  • djadhav's avatar
    djadhav
    Regular Contributor

    Please post a screenshot or give an example to elaborate.

    • abrar22's avatar
      abrar22
      Frequent Contributor

       There is Element which  Exists in different Windows or Strategies but in one Window it shouldn't be there and I have chcek that it doesn't exist in that window.

       

      We have a .Exist method to check if the element is there but is there any method or way to check that it is not there?

       

      Thanks

      • djadhav's avatar
        djadhav
        Regular Contributor

        If the .Exists method returns false that means it it not there.