While trying to automate using webdriver and python I am facing the following issue:

Simple click is working without action chains :

.click()

But trying to click is not working using action chains class:

from selenium.webdriver.common.action_chains import 

action = ()

action.click(element).perform()

Similarly, trying to drag drop not working using action chains class:

action.drag_drop_by_offset(element,"0","100").perform()

action.drag_drop(element,element2).perform()

Using ActionChains gives a stale element exception.

Is there any other way to perform these operations like move_to, mouse_press, mouse_release, drag_drop etc. without ActionChains class



Source link https://sqa.stackexchange.com/questions/34317/selenium--driver----but-same-functions-of-actionchains-cla

LEAVE A REPLY

Please enter your comment!
Please enter your name here