Right Click Drag and Drop Selenium Webdriver -


so i'm trying perform right click drag , drop using selenium webdriver, wondering if had ideas on how this?

i have tried using actionchains it, dont seem run.

for right click mouse can use

webelement elementtorightclick = driver.findelement(by.id("gbqfba"));  actions clicker = new actions(driver);  clicker.contextclick(elementtorightclick).perform();  

for drag&drop, can use

actions builder = new actions(driver);  action draganddrop = builder.clickandhold(source element).movetoelement(target element).release(target element).build();  draganddrop.perform(); 

(or)

actions builder = new actions(driver); action draganddrop = builder.draganddrop(source element, target element).build(); draganddrop.perform(); 

Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -