div position with javascript code example
Example 1: change the position of div using javascript
document.getElementById('carRight').style.left="600px";
Example 2: javascript move element position
var moveX = 10
const x {
if not == (obj==null) {
atrr.x = x.element //enter in the variable of your element inside "element"
atrr.x = x.element + moveX }
}
Example 3: position of webelement
WebElement class has a get Location method with returns the top
left corner of the element
element.getLocation();