Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97756

After resizing/expanding div size, while releasing action it comes back to its default size

$
0
0

I am trying to click and hold resizable handler and then moving mouse by x and y offset and then releasing the mouse to expand div. After releasing the Action div comes back to its Default size.

I ll appreciate even if I get JavascriptExecutor equivalent script as well.

Here is my code snippet.

new Actions(driver)
    .clickAndHold(driver.findElement(By.xpath("//*[@data-qa-ref='resize-handle-NE']/div")))
    .moveByOffset(50,-50)
    .release()
    .build()
    .perform(); 

Viewing all articles
Browse latest Browse all 97756

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>