python call function on button click code example
Example 1: how to click on button using python
from selenium import webdriver
driver = webdriver.Firefox()
driver.get('your page url')
button_element = driver.find_element_by_id('button id')
button_element.click()
Example 2: call a function onclick tkinter
def someFunction:
function body
tkWindow = Tk()
button = Button(tkWindow, command=someFunction)
Example 3: button click event in python
button_element = driver1.find_element_by_id('button event')
button_element.click()