I have faced a weird situation, where on the page in Serenity I have to scroll to the element:
withAction().moveToElement(webElement).perform();
and this method for some elements throws:
org.openqa.selenium.interactions.MoveTargetOutOfBoundsException:
(377.375, 958.3999938964844) is out of bounds of viewport width (1268) and height (943)
It happens only in Firefox(Chrome works fine). Moreover almost all other places, where I'm using the same method are working well. All elements are just usual elements like buttons, input fields, etc.
Does anybody know how to fix this in Firefox?
I have:
- Firefox 61.0.2 (64-bit)
- Windows 10
- Serenity 1.9.30
- Geckodriver 0.21.0
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…