1.login.py # -*- coding: utf-8 -*- from selenium import webdriver from time import sleep from selenium.webdriver.common.action_chains import ActionCha ...
分类:
编程语言 时间:
2020-07-10 09:28:52
阅读次数:
97
页面元素的属性 tag_name 标签名 print(ele.tag_name) text 文本内容 parent 获取父级标签 页面元素的方法 get_attribute(属性名) 获取标签的属性 is_displayed() 判断元素是否可见 send_keys() 输入内容 click() 点 ...
分类:
其他好文 时间:
2020-06-26 12:26:49
阅读次数:
105
一、web控件的交互进阶 selenium需要与浏览器交互就需要导入Action Chains,主要用于模拟鼠标的行为,比如单击、双击、拖动等; 当调用Action Chains的方法时,会将所有操作按顺序存入队列 当调用perform()方法时,队列中的事件会依次进行 from selenium ...
分类:
其他好文 时间:
2020-06-25 19:53:02
阅读次数:
72
# coding:utf-8from selenium import webdriverfrom selenium.webdriver.common.action_chains import ActionChainsfrom selenium.webdriver.support.select imp ...
分类:
其他好文 时间:
2020-06-17 13:05:32
阅读次数:
54
客户说数据库的CPU使用率为100%,应用相应迟缓。发现是latch: cache buffers chains 作祟故障分析思路 查看等待事件,判断故障起因 1 SQL>select * from (select sid,event,p1,p2,p3,p1text,WAIT_TIME,SECOND ...
分类:
系统相关 时间:
2020-06-15 18:04:23
阅读次数:
73
客户说数据库的CPU使用率为100%,应用相应迟缓。发现是latch: cache buffers chains 作祟故障分析思路 查看等待事件,判断故障起因 1 SQL>select * from (select sid,event,p1,p2,p3,p1text,WAIT_TIME,SECOND ...
分类:
系统相关 时间:
2020-06-15 17:36:04
阅读次数:
67
鼠标+键盘事件 一、鼠标事件 Selenium提供ActionChains类中 from selenium.webdriver.common.action_chains import ActionChains 鼠标操作的常用方法: 操作 方法 右击 context_click() 双击 double ...
分类:
其他好文 时间:
2020-06-07 09:25:04
阅读次数:
72
1 # coding=utf-8 2 from selenium import webdriver 3 from selenium.webdriver.common.action_chains import ActionChains 4 import time 5 6 driver = webdri ...
分类:
编程语言 时间:
2020-05-19 20:53:12
阅读次数:
101
一、idea检查警告 Can be replaced with 'peek' less... (Ctrl+F1) Inspection info: This inspection reports stream API call chains which can be simplified. It a ...
分类:
其他好文 时间:
2020-05-13 19:59:17
阅读次数:
79
1丶无产者在这个革命中失去的只是锁链。他们获得的将是整个世界。 The proletarians have nothing to lose but their chains.They have a world to win. 2丶做世界的水手,游遍所有的港口。 To be a sailor of t ...
分类:
其他好文 时间:
2020-05-04 19:31:18
阅读次数:
86