Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97778

Pycharm Selinum Click issue

$
0
0

I am new in python. I wrote this code but in the last the code don't click to Log In

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
driver = webdriver.Chrome(executable_path=r"C:\Users\Sohaib Waseem\PycharmProjects\chromedriver.exe")
driver.get("https://www.facebook.com/")
user_name = driver.find_element_by_name("email") ###... checking user name or email box is available 
in page
print(user_name.is_displayed())      ### ... return true false of the status
print(user_name.is_enabled())        ### ... return true false of the status
pass_word = driver.find_element_by_name("pass")
print(pass_word.is_displayed())      ### ... return true false of the status
print(pass_word.is_enabled())        ### ... return true false of the status
user_name.send_keys("asdf")
pass_word.send_keys("asdf")
driver.find_element_by_xpath("Log In").click()

Viewing all articles
Browse latest Browse all 97778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>