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

ineed some help #460

Open
alqersh opened this issue Apr 12, 2021 · 1 comment
Open

ineed some help #460

alqersh opened this issue Apr 12, 2021 · 1 comment

Comments

@alqersh
Copy link

alqersh commented Apr 12, 2021

this is the scribt
from selenium import webdriver
driver = webdriver.Chrome()
rm=driver.get('https://pastebin.com/raw/QcVbx9xR')
print (rm.text)
if 'ahmed' in rm:
print('donelogin')
else:
print('sory')
i want him to print what is in rm(paste bin)but when i runing is print
Traceback (most recent call last):
File "C:\Users\user\OneDrive\Desktop\test.py", line 4, in
print (rm.text)
AttributeError: 'NoneType' object has no attribute 'text'
so please help me

@alqersh alqersh changed the title AttributeError: 'NoneType' object has no attribute 'foo' - This usually happens because you called find() and then tried to access the .foo attribute of the result. But in your case, find() didn’t find anything, so it returned None, instead of returning a tag or a string. You need to figure out why your find() call isn’t returning anything. ineed some help Apr 12, 2021
@lowgrind
Copy link

image
I am getting the same issue with example code

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