运行TestCase时,提示:Element is not currently visible and so may not be interacted with

今天在跑case的时候,robotframework提示:Element is not currently visible and so may not be interacted with

 

 

明明在页面上可以用xpath定位到的,但就是跑用例的时候报错,元素不可见。

 

后来发现,跑用例的时候,浏览器不是最大化,导致个人设置没有显示出来,于是在用例中加上Maximize browser Window,终于跑成功了。

 

posted on 2016-06-02 17:31  Jeff_x  阅读(490)  评论(0编辑  收藏  举报