Selenium Web Driver (Java). How to click waypoint inside the map which is canvas in HTML5 page
Currently, I am facing challenging a problem to drag and drop on a map which is canvas in html5 page.
The source code of waypoint on the map is as below:
<div id-"tool-tip" class="tool-tip-target" sytle="left 25.2597px;top:-13.085.px">
How actually I can locate the web element on canvas map and click it as well since later I need drop destination on one of waypoint on the map.
The Selenium Web Driver I am using is 2.48.2
and programming language is Java.
Here is the solution I try to do but neither of them works.
driver.findElement(By.cssSelector("div#tool-tip.tool-tip-target")).click();
WebElement To = driver.findElement(By.cssSelector("div[id='tool-tip'][class='tool-tip-target'][style='left:292.769px; top: 72.815px;']"))