selenium.JavascriptException: javascript error: Failed to execute 'elementFromPoint' on 'Document': The provided double value is non-finite

后端 未结 7 3118
花落未央
花落未央 2021-02-20 12:40

using chrome 78 and chromedriver78 When i click an audio file or try to stop an audio using selenium tests i am getting this error.

Error:

org.openqa.selen         


        
相关标签:
7条回答
  • 2021-02-20 13:39

    This error appeared when I upgraded to ChromeDriver 88 from a version in the 70s (71?). It was actually caused by a workaround from that earlier version. This was using a dropdown in angular. Instead of clicking on an element I had to move to the element and then click on it in separate steps. When I removed the moveToElement steps the error went away

    previous code

            masterPage.MasterDropDown.click();
            Thread.sleep(3000);
            actions.moveToElement(masterPage.MasterDropDown).perform();
            Thread.sleep(1000);
            actions.moveToElement(masterPage.DropdownButton1).perform();
            Thread.sleep(1000);
            masterPage.DropdownButton1.click();
    

    Was changed to

            masterPage.MasterDropDown.click();
            masterPage.DropdownButton1.click();
    

    The error went away and it is cleaner.

    0 讨论(0)
提交回复
热议问题