TransWikia.com

How to add custom functions to run in Selenium ActionChain/ActionBuilder?

Stack Overflow Asked by m0bbin on January 27, 2021

I used to be able run custom function by appending to the _actions variable in ActionChain like below.

action = ActionChain(driver)
action._action.append(lambda: func())

It seems like now if drivers are w3c they are instead run by ActionBuilder object. The ActionBuilder class doesn’t seem to have a singular queue to run actions in order like ActionChains. Anyone that is more familiar in selenium point me in the right direction?

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP