Automation ';元素不可见';使用G1ANT打开Chrome时出错

Automation ';元素不可见';使用G1ANT打开Chrome时出错,automation,robotics,rpa,webautomation,g1ant,Automation,Robotics,Rpa,Webautomation,G1ant,偶尔,当G1ANT试图打开一个程序(Google Chrome)时,它会给出一个错误“element not visible”,这种情况并不经常发生,事实上很少发生。 当它真的发生时,它在下面一行脚本的开头, URL是标准的HTTP URL selenium.open chrome url ♥Url 看起来好像当时它没有识别程序chrome。错误消息是: element not visible (Session info: chrome=78.0.3904.97) (Driver info:

偶尔,当G1ANT试图打开一个程序(Google Chrome)时,它会给出一个错误“element not visible”,这种情况并不经常发生,事实上很少发生。 当它真的发生时,它在下面一行脚本的开头, URL是标准的HTTP URL

selenium.open chrome url ♥Url
看起来好像当时它没有识别程序chrome。错误消息是:

element not visible  (Session info: chrome=78.0.3904.97)
(Driver info: chromedriver=2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb),
platform=Windows NT 10.0.14393 x86_64)

你知道这是什么原因吗?我能做些什么来阻止它发生吗?

以下是解决这个问题的方法:

♥elementNotVisibleCount = 0
label elementNotVisible
♥elementNotVisibleCount = ♥elementNotVisibleCount + 1
if ⊂♥elementNotVisibleCount>=5⊃
selenium.open chrome url ♥url
end if
selenium.open chrome url ♥url errorjump elementNotVisible if 
⊂♥elementNotVisibleCount<4⊃
♥elementNotVisibleCount=0
标签元素不可见
♥elementNotVisibleCount=♥elementNotVisibleCount+1
如果⊂♥elementNotVisibleCount>=5⊃
selenium.openChromeURL♥网址
如果结束
selenium.openChromeURL♥url错误跳转元素不可见,如果
⊂♥elementNotVisibleCount