06 2020 档案

摘要:代码: #coding=utf-8 from selenium import webdriver import time import requests import json from selenium.webdriver.support import expected_conditions as 阅读全文

posted @ 2020-06-30 07:52 shiberhou 阅读(787) 评论(0) 推荐(0)

摘要:#coding=utf-8 from selenium import webdriver import json import requests ##############3-12:request实现打开地址封装_start################ class requests_webdr 阅读全文

posted @ 2020-06-23 08:17 shiberhou 阅读(183) 评论(0) 推荐(0)

摘要:代码: #coding=utf-8 from selenium import webdriver import json import requests ##############3-12:request实现打开地址封装_start################ url = 'http://12 阅读全文

posted @ 2020-06-23 07:08 shiberhou 阅读(981) 评论(0) 推荐(0)

摘要:代码: #coding=utf-8 from selenium import webdriver import time #IE浏览器11/IEDriverServer.exe driver = webdriver.Ie() driver.get('http://www.baidu.com/') t 阅读全文

posted @ 2020-06-20 11:03 shiberhou 阅读(1034) 评论(0) 推荐(0)

摘要:代码: #coding = utf-8 def people(age): if age>0: print("这是一个正常的人") print(get_name()) else: print("这是一个不正常的人") def get_name(): print("张三") people(10) 结果: 阅读全文

posted @ 2020-06-20 09:53 shiberhou 阅读(852) 评论(0) 推荐(0)

摘要:代码: 结果: PS E:\30.Study\30.自动化测试\99.零基础入门 Python Web 自动化测试\10.seleniumCodePractice> & "C:/Program Files/Python38/python.exe" "e:/30.Study/30.自动化测试/99.零 阅读全文

posted @ 2020-06-20 09:25 shiberhou 阅读(218) 评论(0) 推荐(0)

摘要:1. VS code 设置1之多行注释快捷键 转自:https://blog.csdn.net/Alive_tree/article/details/102941123 打开VSCode 1、 点击文件 -->首选项–> 键盘快捷方式 2、 在搜索框中输入comment 3、 选中要更改的快捷键名字 阅读全文

posted @ 2020-06-20 08:59 shiberhou 阅读(288) 评论(0) 推荐(0)

摘要:代码: #coding=utf-8 import requests import json url='http://127.0.0.1:4444/wd/hub/session' data = json.dumps({ 'desiredCapabilities':{ 'browserName':'Mi 阅读全文

posted @ 2020-06-19 23:27 shiberhou 阅读(4592) 评论(0) 推荐(0)

摘要:代码: #coding=utf-8 import requests import json url='http://127.0.0.1:4444/wd/hub/session' data = { 'desiredCapabilities':{ 'browserName':'MicrosoftEdge 阅读全文

posted @ 2020-06-19 00:03 shiberhou 阅读(1185) 评论(0) 推荐(0)

摘要:代码: #coding=utf-8 import requests import json url='http://127.0.0.1:4444/wd/hub/session' data = json.dumps({ 'capabilities':{ 'browserName':'Microsoft 阅读全文

posted @ 2020-06-18 23:42 shiberhou 阅读(1827) 评论(0) 推荐(0)

摘要:代码: #coding=utf-8 import requests import json url='http://127.0.0.1:4444/wd/hub/session' data = json.dumps({ 'desiredCapabilities':{ 'browserName':'Mi 阅读全文

posted @ 2020-06-18 23:32 shiberhou 阅读(1075) 评论(0) 推荐(0)

摘要:代码: #coding=utf-8 import requests import json url='http://127.0.0.1:4444/wd/hub/session' data = json.dumps({ 'desiredCapabilities':{ 'browserName':'Mi 阅读全文

posted @ 2020-06-18 22:57 shiberhou 阅读(196) 评论(0) 推荐(0)

摘要:代码: #coding=utf-8 import requests import json url='http://127.0.0.1:4444/wd/hub/session' data = json.dump({ 'Capabilities':{ 'browserName':'Edge' } }) 阅读全文

posted @ 2020-06-17 23:17 shiberhou 阅读(16941) 评论(0) 推荐(2)

摘要:代码: #coding=utf-8 from selenium import webdriver webdriver.Chrome() 结果: PS E:\30.Study\30.自动化测试\99.零基础入门 Python Web 自动化测试\10.seleniumCodePractice> & " 阅读全文

posted @ 2020-06-16 23:17 shiberhou 阅读(4804) 评论(0) 推荐(0)

导航