Skip to content
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

获取不到元素的text #3

Open
Bu1eCat opened this issue Dec 27, 2019 · 1 comment
Open

获取不到元素的text #3

Bu1eCat opened this issue Dec 27, 2019 · 1 comment

Comments

@Bu1eCat
Copy link

Bu1eCat commented Dec 27, 2019

    def test_LoginBySms_Success(self, browser, base_url):
        page = Login_Page(browser)
        print(page.login_success.text)

在selenium 下无法获取元素的text
E AttributeError: 'NoneType' object has no attribute 'text'

@defnngj
Copy link
Owner

defnngj commented Feb 15, 2020

用法没错,但不知道你的 login_success 是如何定义的?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants