-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiframesJquery.java
More file actions
26 lines (22 loc) · 924 Bytes
/
iframesJquery.java
File metadata and controls
26 lines (22 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package VINDVG1.Vinay27;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.interactions.Actions;
import io.github.bonigarcia.wdm.WebDriverManager;
public class iframesJquery {
public static void main(String[] args) {
WebDriverManager.chromedriver().setup();
WebDriver driver = new ChromeDriver();
driver.get("https://jqueryui.com/slider/");
driver.manage().window().maximize();
Actions Sudha = new Actions(driver);
WebElement iframe = driver.findElement(By.xpath("//*[@id=\"content\"]/iframe"));
driver.switchTo().frame(iframe);
WebElement slider = driver.findElement(By.xpath("//*[@id=\"slider\"]/span"));
Sudha.dragAndDropBy(slider,400,0).perform();
slider.click();
System.out.println("slider moves sucess");
}
}