selenium:css_selector定位详解(css selector和xpath的比较) 来源:https://www.cnblogs.com/haifeima/p/10138154.html 目录 selenium使用css selector和xpath的比较 selenium提供的定位方 ...
分类:
Web程序 时间:
2019-12-10 15:19:01
阅读次数:
113
写好的自动化程序怎么让它运行呢,总不能每次都启动eclipse吧,下面就先介绍一种用dos命令运行testNG的方法。 1、把项目打成jar吧,我用的是Fat jar工具。 2、在电脑的某个盘建一个文件夹,如testng 3、将项目jar包、selenium-server-standalone-2. ...
分类:
其他好文 时间:
2019-12-10 01:15:59
阅读次数:
148
python+selenium模拟京东登录后台 import json from time import sleep from selenium import webdriver #from selenium.webdriver.common.keys import keys #初始化浏览器 dri ...
分类:
编程语言 时间:
2019-12-10 01:14:05
阅读次数:
421
163邮件登录首页 登录成功断言是否有退出按钮 点击退出退出登录 from selenium import webdriver import unittest import time class VisitSogouByChrome(unittest.TestCase): def setUp(sel ...
分类:
编程语言 时间:
2019-12-10 00:38:14
阅读次数:
100
将__file__加上单引号就解决了: # 获取当前文件名,用于创建模型及结果文件的目录 file_name = os.path.basename('__file__').split('.')[0] 参考网址:https://blog.csdn.net/m0_37544464/article/det ...
分类:
编程语言 时间:
2019-12-09 18:50:49
阅读次数:
77
#!/usr/bin/python # -*- coding: UTF-8 -*- # @Time : 2019年12月9日11:41:08 # @Author : shenghao/10347899@qq.com '''test with selenium's move by x,y''' fro... ...
分类:
编程语言 时间:
2019-12-09 14:07:34
阅读次数:
154
#!/usr/bin/python # -*- coding: UTF-8 -*- # @Time : 2019/12/5 17:30 # @Author : shenghao/10347899@qq.com '''test with selenium's move''' from selenium... ...
分类:
编程语言 时间:
2019-12-09 12:07:18
阅读次数:
122
#!/usr/bin/python # -*- coding: UTF-8 -*- # @Time : 2019/12/5 17:30 # @Author : shenghao/10347899@qq.com '''test with selenium's move''' from builtins... ...
分类:
编程语言 时间:
2019-12-09 11:56:20
阅读次数:
123
#!/usr/bin/python # -*- coding: UTF-8 -*- # @Time : 2019/12/5 17:30 # @Author : shenghao/10347899@qq.com '''test with selenium's move''' from selenium... ...
分类:
编程语言 时间:
2019-12-09 11:37:52
阅读次数:
92