Selenium or Pupperteer Press and Hold Action

there are some work i need to press and hold for example to solve walmart captcha… normally i use python with command line:

element = driver.find_element_by_css_selector('#px-captcha')
# print(len(element.text), '- Value found by method text')
action = ActionChains(driver)
click = ActionChains(driver)
action.click_and_hold(element)
action.perform()
time.sleep(random.uniform(10.1,12.1))
action.release(element)
action.perform()
time.sleep(random.uniform(0.2,0.5))
action.release(element)

but with openbullet I don’t know how the statement syntax will go. can someone help me. thank you.

Hey, this is not supported yet but you can do it manually with C#. You can get the original webdriver like this

var driver = data.TryGetObject<WebDriver>("selenium");

After that you can use C# to do exactly what you want. I don’t have time to write every action since I don’t remember them and I would have to search and test. Otherwise open an issue on github and I will try to add some syntax to do this (low priority).

Thanks for your help. i created it on github. I hope to receive help and I also sent 1 to the team a few cups of coffee via btc wallet address. Thank you guys for everything :slight_smile:

1 Like

Thank you for the donation! I will try to look into this during the weekend :wink:

yes i will be looking forward to it. please. Thank you very much.

hello, have any update?

Hey, sorry but I barely have any free time lately due to my job. I had your thread open in a browser tab for a while and couldn’t get to it yet :confused: