Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

selenium drag slider

public class TestClass 
   {
        public static void main(String[] args) {         
        File file = new File("D:DriverIEDriverServer.exe");
        System.setProperty("webdriver.ie.driver", file.getAbsolutePath());
        WebDriver driver = new InternetExplorerDriver();
        driver.get("http://jqueryui.com/slider/");

        WebDriver driver = new InternetExplorerDriver();
        driver.get("http://jqueryui.com/slider/");
        driver.switchTo().frame(0); //need to switch to this frame before clicking the slider
        WebElement slider = driver.findElement(By.xpath("//div[@id='slider']/span"));
        Actions move = new Actions(driver);
        Action action = (Action) move.dragAndDropBy(slider, 30, 0).build();
        action.perform();
   }
Comment

PREVIOUS NEXT
Code Example
Java :: what are variables in java 
Java :: calendar check if month is 30 days 
Java :: make quotation a string 
Java :: java list remove 
Java :: how to develop web apps using java 
Java :: cannot find symbol iterator in java 
Java :: convert arraylist of integers to array primitive 
Java :: How to output error in java 
Java :: java set file folder permissions 
Java :: java change frame border 
Java :: current port used by the Java application 
Java :: android list newline 
Java :: show all spring boot beans 
Java :: android press back 2 times to exit 
Java :: Java Access ConcurrentHashMap Elements 
Java :: hangfire list recurring jobs 
Java :: méthode retourne nom classe java 
Java :: Java TreeMap Example NavigableMap 
Java :: hashmap put method 
Java :: merge without extra space 
Java :: Card view only top corner radius 
Java :: linear serach in java 
Java :: list of java 
Java :: java add constructor to enum 
Java :: lcm of two number in java 
Java :: java code for logarithm 
Java :: How to launch app in your android mobile phone 
Java :: format specifier in java 
Java :: how to declare a interface in java 
Java :: radix sort 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =