python click event code example
Example 1: python code for on mouse click release
from pynput.mouse import Button, Controller
mouse = Controller()
print('The current pointer position is {0}'.format(
mouse.position))
mouse.position = (10, 20)
print('Now we have moved it to {0}'.format(
mouse.position))
mouse.move(5, -5)
mouse.press(Button.left)
mouse.release(Button.left)
mouse.click(Button.left, 2)
mouse.scroll(0, 2)
Example 2: button click event in python
button_element = driver1.find_element_by_id('button event')
button_element.click()