元素定位问题
1>遇到这种class一样,都使用button标签的元素可同文本内容定位


2>遇到悬浮,隐藏元素type=‘display: none;’时,使用普通的点击操作click element的无法定位并点击元素。



下拉框的悬浮元素使用click element会报错提示:ElementNotVisibleException: Message: Element is not visible,元素不可见。可通过mouse over模拟鼠标定位元素,再使用click element点击元素,具体方案如下:

网友评论