selenium use Zatan

Focus: to ensure the success rate of the program is running, and do not slow wrong Ningshao Ning. Do not consider the minutiae of things, add less unstable assertion

1. Add a breakpoint in the capture anomaly has been run using the debug mode.

2. Enter the box: After you add a good element, a step by step to verify that each value of the input box can be entered, the first use sendkey, not re-use send_clear

3. The drop-down box: box for asynchronous loading elements, such as drop-down box value from the box, the drop-down box default option is the second, if there is no option will throw an exception, do not understand the drop-down box option must be entered Remarks source

4. search box and check boxes linkage, try to use select all. Single radio happens without value, and then add notes

5. Before the implementation of js must first positioning element exists.

6. Timeout element: two types, one is simply not exist, one is delayed loading, typically wait to use the first element on the page, implicit wait 3 seconds is judged to be operable element, a display waiting 15 seconds

Guess you like

Origin www.cnblogs.com/seals/p/11292840.html