Using Selenium to Login to Page
You are doing it in a wrong way. You are clicking the PCM and after that PCM you are Clicking PCM again. Although you can select one option from drop down list.
Your go button id is also wrong.
your code should be look like below ---
import timeimport osimport subprocessfrom selenium import webdriverfrom selenium.webdriver.common.keys import Keysfrom selenium.webdriver.support import uiuser_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() go = driver.find_element_by_xpath('//*[@id="util-go"]').click()regular()
IF you want to select PC points option then click on below element instead of Pc Master card
select2 = driver.find_element_by_xpath('//*[@id="PCP"]/a').click()