Here is a scenario as below:
I want to know whether the element exists, if exists, the test will execute some codes, if not exists, test will execute other codes.
Now, I use find to get the element, but if it does not exist, an exception with "Element not found" throws, and so left codes will not be executed.
So please give me some hlep to handle this situation, Thanks!!
I want to know whether the element exists, if exists, the test will execute some codes, if not exists, test will execute other codes.
Now, I use find to get the element, but if it does not exist, an exception with "Element not found" throws, and so left codes will not be executed.
So please give me some hlep to handle this situation, Thanks!!