摘要:
1、思路 使用switch_to.alert()方法定位到 alert/confirm/prompt。然后使用 text/accept/dismiss/send_keys 按需进行操做。 text 返回 alert/confirm/prompt 中的文字信息。 accept 点击确认按钮。 text 阅读全文
posted @ 2017-06-29 20:26
蓝裙子
阅读(295)
评论(0)
推荐(0)
摘要:
1、用到的包和方法 需求导入ActionChains包: 2、需求 鼠标移动到页面中某按钮或菜单,自动弹出二级菜单或下拉菜单,再自动点击其中的二级菜单或下拉列表。以百度首页“更多产品”--“糯米”为例。 3、代码实现 阅读全文
posted @ 2017-06-29 20:20
蓝裙子
阅读(332)
评论(0)
推荐(0)

浙公网安备 33010602011771号