HieuLT Blog

If you don't build your dream someone will hire you to help build theirs.

Error
FAIL    MoveTargetOutOfBoundsException: Message: (413.8333435058594, 894.3999938964844) is out of bounds of viewport width (1440) and height (826)

Scripts:
*** Keywords***
Click on edit button
  Scroll Element Into View    //button[@id='btnsave']
  Click Element  //button[@id='btnsave']
Root cause:
Scroll Element Into View did not work on firefox.
Resolution: using JS 
*** Keywords***
Click on edit button
  Execute JavaScript  window.scrollTo(0,document.body.scrollHeight)
  Click Element  //button[@id='btnsave']

Leave a Reply

Your email address will not be published. Required fields are marked *