-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
open()报错 #41
Comments
LP 需要驱动 from selenium import webdriver
from poium import Page, Element, Elements
# page层定义
class BaiduPage(Page):
...
dr = webdriver.Firefox()
LP = BaiduPage(dr) # <--- LP 需要 驱动 `dr`
LP.open("https://www.baidu.com") |
是的,后来查了一下,加上继承就好了
|
不过其实这里我有个疑问,LoginPage继承的是Page
Page又是继承的PageBase,Pagebase里面有这一段,为啥LoginPage还要driver?
是因为conf里面的driver = None吗?
那我下面这样处理可以吗?
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
想问一下,这个源码中没有找get是什么原因呢?
The text was updated successfully, but these errors were encountered: