当前位置:网站首页>Selenium code storage
Selenium code storage
2022-07-26 14:52:00 【mp1011_ one hundred and ten】
driver Method
# establish driver
chrome_options = Options()
chrome_options.page_load_strategy = 'eager'
self.driver = webdriver.Chrome(options=chrome_options)
self.start_time = datetime.datetime.now()
self.driver.implicitly_wait(10)# An implicit wait : Maximum waiting 8 The second time try except assert Deposit
try: # Read Popup
elements = self.driver.find_element_by_xpath(self.tanchuang_x).text
assert elements == u' New publishing resource succeeded '
print("PASS entrance : Resource details Ordinary members choose themselves "+elements)
except Exception:
print("FAIL entrance : Resource details Ordinary members choose themselves Pop up window is not displayed ") Whether optional detection
x_enabled = self.driver.find_element(By.XPATH,self.push2_x6) # Locate the push name
if x_enabled.is_enabled(): # The input box is grayed out for detection
print("FAIL: Elements are optional ")
else:
print("PASS: Element is not optional ")
self.driver.find_element(By.CSS_SELECTOR)边栏推荐
- Pokemon card evolution jsjs special effect
- Introduction to C language must brush the daily question of the collection of 100 questions (1-20)
- 键盘快捷键操作电脑(自己遇到不会的)
- Create root permission virtual environment
- [Yugong series] July 2022 go teaching course 017 - if of branch structure
- CAS based SSO single point client configuration
- 什么是传输层协议TCP/UDP???
- SiamRPN++:深层网络连体视觉跟踪的演变
- 14. Bridge based active domain adaptation for aspect term extraction reading notes
- Use of delve for go development and debugging
猜你喜欢

CAS single sign on

Summary of target tracking related knowledge

SA-Siam:用于实时目标跟踪的孪生网络

Error reported by Nacos enabled client

【2022国赛模拟】白楼剑——SAM、回滚莫队、二次离线

Arithmetic operation and logic operation of image in opencv
![[2022 national game simulation] Bai Loujian - Sam, rollback Mo team, second offline](/img/e1/0574dd4eb311e79afdb1d071f59c4d.png)
[2022 national game simulation] Bai Loujian - Sam, rollback Mo team, second offline

Siamrpn++: evolution of deep network connected visual tracking

GOM login configuration free version generate graphic tutorial

键盘快捷键操作电脑(自己遇到不会的)
随机推荐
Leetcode659. split the array into continuous subsequences (hash table)
当AI邂逅生命健康,华为云为他们搭建三座桥
[Yugong series] July 2022 go teaching course 017 - if of branch structure
智能家居行业发展,密切关注边缘计算和小程序容器技术
Arithmetic operation and logic operation of image in opencv
[untitled]
【常微分方程求解及绘图之求解小船行走轨迹】
Create root permission virtual environment
sqlDeveloper工具快速入门
Siamrpn++: evolution of deep network connected visual tracking
[solution of ordinary differential equation and drawing solution of small boat walking track]
Whaledi message queue stability improvement practice
JS analog clock with text label
Seata deployment and microservice integration
31. Opinion based relational pivoting forcross domain aspect term extraction reading notes
AMB | 迈向可持续农业:根际微生物工程
SiamRPN:建议区域网络与孪生网络
winscp传输文件和VNC连接问题
Canvas mesh wave animation JS special effect
BSN IPFS(星际文件系统)专网简介、功能、架构及特性、接入说明