I'm trying to write a simple program using Python 2.7 and Selenium to automate checking my Presidents Choice MasterCard balance. However, I can't figure out how to deal with the hidden 'Go' button. My code works fine up to that point.
Check Banking
import time
import os
import subprocess
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import ui
user_id = raw_input('Enter your account number')
#password = raw_input('Enter your password')
driver = webdriver.Chrome() # Optional argument, if not specified will search path.
def regular():
site = driver.get('https://www.pcfinancial.ca/');
sign_in_to = driver.find_element_by_xpath('//*[@id="lnkSignInOp"]').click()
select = driver.find_element_by_xpath('//*[@id="PCM"]/a').click()
select2 = driver.find_element_by_xpath('//*[@id="PCM"]/a').click()
go = driver.find_element_by_xpath('//*[@id="ctl00_uscHeader_btnRegister"]').click()
regular()
hidden? do you have to scroll page to see it ? There are example with javascript code which can scroll page to button.xpathseems incorrect. I can't find it on page. I think you search wrong element. ButtonGohas differentid. Maybe after you clickGoyou get page with elementid="ctl00_uscHeader_btnRegister