from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
driver = webdriver.Chrome()
driver.get("https://wykop.pl/")
WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.XPATH, "//*[@id='cmp-iframe']")))
driver.switch_to.frame(driver.find_element_by_xpath("//*[@id='cmp-iframe']"))
time.sleep(5)
WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, "/html/body/div/div/div/div/div/div[3]/div[2]/button")))
driver.find_element_by_xpath("/html/body/div/div/div/div/div/div[3]/div[2]/button").click()
driver.switch_to.default_content()
open_login = driver.find_element_by_xpath("//*[@id='nav']/div/ul[2]/li[4]/a").click()
user_login = driver.find_element_by_name("user[username]")
user_password = driver.find_element_by_name("user[password]")
user_login.send_keys("JaneAhonen")
user_password.send_keys("nastepnymrazemciepokonam")
driver.find_element_by_xpath("//*[@id='nav']/div/ul[2]/li[4]/div/div/ul/li[1]/form/fieldset/p/input").click()
Replies to Untitled
Title |
Name |
Language |
UNIX |
When |
Re: Untitled |
Cream Butterfly |
python |
1603449764 |
3 Years ago. |
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}