Sep-10-2018, 03:52 PM
Hello, i had put the wrong code as the working one..
here's the code that works..
here's the code that works..
#Trying selenium from selenium import webdriver from bs4 import BeautifulSoup import time from urllib.request import urlopen from selenium.webdriver.common.action_chains import ActionChains browser = webdriver.Firefox() url = 'https://python-forum.io/member.php?action=login' browser.get(url) browser.find_element_by_name('username').send_keys("test") browser.find_element_by_name('password').send_keys("*********") time.sleep(5) button = browser.find_elements_by_class_name('button')[2] # button.send_keys(Keys.PAGE_DOWN) button.click() time.sleep(5) goUrl="https://python-forum.io/usercp.php" browser.get(goUrl)Inputs welcome, especially to make this work with requests