效果如图: 根据下拉框fieldTypeComboBox,控制其他控件的显隐 关键代码 <ComboBox Grid.Column="1" Grid.Row="2" DataContext="{Binding FieldTypeEnumInfos}" ItemsSource="{Binding }" ...
分类:
其他好文 时间:
2020-06-27 14:40:42
阅读次数:
61
键盘操作 导包 from selenium.webdriver.common.keys import Keys 对应属性以及调用 Keys.BACK_SPACE:回退键(BackSpace) Keys.TAB:制表键(Tab) Keys.ENTER:回车键(Enter) Keys.SHIFT:大小写 ...
分类:
Web程序 时间:
2020-06-26 12:43:21
阅读次数:
90
Chrome浏览器驱动下载地址:http://chromedriver.storage.googleapis.com/index.html Firfox浏览器驱动下载地址:https://github.com/mozilla/geckodriver/releases IE浏览器驱动下载地址:http ...
分类:
Web程序 时间:
2020-06-26 12:35:59
阅读次数:
522
from selenium import webdriver from time import sleep """ dr = webdriver.Chrome() dr.get("https://mail.qq.com/") sleep(3) #多表单切换 #对于frame/iframe表单嵌套(多 ...
分类:
Web程序 时间:
2020-06-25 23:31:56
阅读次数:
85
selenium定位type属性 driver.find_element_by_css_selector('input[type="password"]').send_keys('Password') from selenium import webdriver #用来驱动浏览器的 from sel ...
分类:
其他好文 时间:
2020-06-25 14:13:22
阅读次数:
99
class CGridCtrl : public CWnd { DECLARE_DYNAMIC(CGridCtrl) public: void Create(CWnd* pParent, DWORD dwStyle, RECT rect, UINT nId); void InsertColumn(L ...
分类:
其他好文 时间:
2020-06-24 18:13:42
阅读次数:
85
1、甘特图 前台View中代码 1 <lvc:CartesianChart Grid.Row="2" Zoom="None" Margin="0,40"> 2 <lvc:CartesianChart.AxisX> 3 <!--LabelFormatter-轴坐标标签样式;MinValue-轴坐标起点 ...
MaxInstances This says....how many instances of same version of browser can run over the Remote System. For example, i have a FF12,IE and i declared t ...
分类:
其他好文 时间:
2020-06-23 17:28:18
阅读次数:
47
一、多表单切换 当遇到frame/iframe表单嵌套页面时, WebDriver只能在一个页面上对元素识别与定位,对于frame/iframe表单 内嵌页面上的元素无法直接定位。这时就需要通过switch_to.frame()方法将当前定位的主体切换为frame/iframe表单的内嵌页面中。 s ...
分类:
编程语言 时间:
2020-06-23 15:48:57
阅读次数:
91
当页面未加载完成时,元素可能不能获取,可以设置页面等待提高脚本稳定性。 webdriver提供了两种类型的等待:显式等待、隐式等待 一、显示等待 显式等待使WebdDriver等待某个条件成立时继续执行,否则在达到 最大时长时抛弃超时异常(TimeoutException)。 示例代码: from ...
分类:
编程语言 时间:
2020-06-23 13:33:02
阅读次数:
60