I am trying to zoom out the page and then perform actions like click on the button. But I am getting element not visible or interactable. I even tried to place delay and then have mouse move to x and y coordinates before clicking on the element, then I am getting moveTargetOutOfBounds error. Please find the snippet below.
def location = driver.findElement(By.xpath("//div[contains(@class, ‘sub-navigation’)]/a[contains(text(),‘Careers’)]")).getLocation()
int locationX = location.x
int locationY = location.y
Actions action = new Actions(driver);
Thanks in advance for your time in helping me.
There are issues when altering the document zoom level - it looks like you are hitting those.
Not why the correct element locations are used when the page is loaded. I am assuming the elements in the dom should be reset to correct locations. Is something I am missing here