Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/378.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript ElementClickInterceptedException:消息:element ClickIntercepted-机器人框架_Javascript_Automation_Polymer_Robotframework - Fatal编程技术网

Javascript ElementClickInterceptedException:消息:element ClickIntercepted-机器人框架

Javascript ElementClickInterceptedException:消息:element ClickIntercepted-机器人框架,javascript,automation,polymer,robotframework,Javascript,Automation,Polymer,Robotframework,我使用的是机器人框架。我对这一点还不熟悉。我的应用程序是基于聚合物的应用程序。当我点击一个元素时,它会在下面显示错误 >ElementClickInterceptedException: Message: element click intercepted: Element <div class="app-block"...</div> is not clickable at point (389, 339). Other element would re

我使用的是机器人框架。我对这一点还不熟悉。我的应用程序是基于聚合物的应用程序。当我点击一个元素时,它会在下面显示错误

    >ElementClickInterceptedException: Message: element click intercepted: Element <div class="app-block"...</div> is not clickable at point (389, 339).

   Other element would receive the click: <vsim-start-page config="{{config}}" startpage="[[startpage]]" vertical="" layout=""></vsim-start-page>
下面是元素的源代码

<div flex layout vertical>

<div class="app-title" style="font-size:0.8em;text-transform: uppercase;">Pallet Register</div>

<div class="app-subtitle">Pallet Register View</div>

托盘寄存器
托盘寄存器视图

请帮助我解决此问题。

元素ClickInterceptedException
通常在元素不可“单击”时发生。因为你已经试过睡觉了;可以排除与同步相关的问题

您可以尝试的是:

  • 检查元素所在的任何外部容器或框架/iframe是否可能导致此问题

  • 通过POE(消除过程);确定元素的可见级别,然后从那里开始工作。在您给出的示例中,div属性
    flex layout vertical
    似乎没有任何值,您可以检查之前和之后的某个元素,以查看此div的渲染是否存在问题

  • 从聚合物的角度来看,这将有助于检查是否有任何阴影DOM对象正在使用;如果是,请检查以下内容:

<div flex layout vertical>

<div class="app-title" style="font-size:0.8em;text-transform: uppercase;">Pallet Register</div>

<div class="app-subtitle">Pallet Register View</div>