Is there a way to run the Macro with Selenium or Trigger?

Integration questions/issues
Post Reply
smori
Posts: 1
Joined: Sun Nov 03, 2019 11:30 am

Is there a way to run the Macro with Selenium or Trigger?

Post by smori » Sun Nov 03, 2019 11:45 am

My purpose is to run a macro automatically to update documents. I tried it with Selenium with python because SeleniumIDE could do it , but pytnon-CLI couldn't touch the Macro button. Here is the code. Please,someone help me to solve it?

Code: Select all

driver.get('https://localhost/Products/Files/doceditor.aspx?fileid=6')
try:
    WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.LINK_TEXT, "Plugins")))
except TimeoutException as ex:
    print("Exception has been thrown. " + str(ex))
driver.find_element_by_link_text('Plugins').click()
driver.find_element_by_id('asc-gen7428').click()
asc-gen7428 is the Macro button's ID. But Selenium couldn't touch the Macro button.

Post Reply