摘要: ``` print(self.driver.execute_script("console.log('hello from selenium')")) 返回页面某个元素 print(self.driver.execute_script("return document.title;")) 进行页面元素的点击 self.driver.execute_script("arguments[0].cl... 阅读全文
posted @ 2019-08-04 23:19 Beyond8 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 第一种方式:chrome debug 第二种方式:通过添加cookie 阅读全文
posted @ 2019-08-04 23:08 Beyond8 阅读(478) 评论(0) 推荐(0) 编辑
摘要: 移动到指定的坐标(相对当前的坐标移动) 移动到窗口绝对位置坐标,如下移动到纵坐标1600像素位置 移动到页面顶部 移动到页面底部 移动到一个标签的位置 阅读全文
posted @ 2019-08-04 22:54 Beyond8 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 鼠标事件 键盘事件 阅读全文
posted @ 2019-08-04 22:24 Beyond8 阅读(175) 评论(0) 推荐(0) 编辑