You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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
The text was updated successfully, but these errors were encountered: