SHARE
TWEET

Untitled

a guest Jun 19th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. WebElement Element =  driver.findElement(By.xpath("//*[contains(@search-item-predicate-value,'test_object')]"));
  2. jse.executeScript("arguments[0].scrollIntoView();", Element);
  3.  
  4. jse.executeScript("arguments[0].scrollTop = arguments[1];",driver.findElement(By.className("wux-scroller")), 500); //scrollTop works but scrollIntoView fails```
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top