from selenium import webdriver
from helium import *
import pandas as pd
import pyautogui
chrome_options = Options()
chrome_options.add_experimental_option("debuggerAddress", "127.0.0.1:9222")
chrome_driver = "D:\\Program Files (x86)\\chromedriver.exe"
driver = webdriver.Chrome(chrome_driver, chrome_options=chrome_options)
set_driver(driver)
switch_to(find_all(Window())[0])
Config.implicit_wait_secs = 15
# # click(S('//*[@id="span77"]'))
# a=driver.find_element(By.XPATH,'//*[@id="span17"]').text
# print(a)
for link in driver.find_elements_by_xpath('//*[@id="s-top-left"]/a'):
print(link.get_attribute('href'))
a = link.get_attribute('href')
print(a)
# # time.sleep(2)
# # click(S('//*[@id="pane-fourth"]/div/div/div[2]/div[3]/table/tbody/tr[3]/td[5]/div/button'))