Detailed explanation of selenium's parent-child, brother, and adjacent node positioning methods

=

1. Commonly used css positioning, because it is very familiar with css, js, and html

2. In special cases, it is still necessary to use xpath positioning, such as finding the parent node, etc., the css positioning ability is relatively much weaker. xpath is powerful!

3. Use tools to assist development, otherwise xpath can be positioned correctly? How can I locate it before the program and check it accurately?

 

    It is found that the program written is almost free of bugs, and once passed, there is no need to adjust and change it again and again. Because of unit testing + tool inspection. But what's the use? Is the salary of the old bird in the chicken country high? Hey. .

=

from:http://blog.csdn.net/huilan_same/article/details/52541680

Look at the original text, it's a bit messy to paste it, and I don't want to deal with it anymore.

 

=

=

=

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327072666&siteId=291194637