RE: How to find the id from the Expanding the tree node in selenium web driver using java. can you please put some code and tutorial for this?
Thank you, I can get the XPath value.
Please see the below code.
WebElement From = driver.findElement(By.xpath(“//div[@id=”]/div”)); –> Getting the Xpath value from the source location.
WebElement To = driver.findElement(By.xpath(“//div[@id=”]/div”)); –> getting the xpath value from the traget location
Actions action = new Actions(driver);
action.dragAndDrop(From, To).build().perform(); –> When this code is running the value is not dropping in the location where it has to drop. It keeps it with cursor . I have to manuelly click on that location to drop the value.
Any Help would be appreciated.