如何使用 WebdriverIo 在 perfecto 中解决 30000ms 错误后元素仍然不可见的问题

How to resolve element still not visible after 30000ms error in perfecto using WebdriverIo

我试图在 perfecto 中点击一个元素,但是我在 30000 毫秒错误后发现元素不可见,使用: browser.waitForVisible('element locator'); browser.waitForVisible('click');

元素定位器在 DOM 中检查时是唯一且正确的。

如果我尝试使用 browser.keys('down arrow'); 它什么都不做

使用browser.scroll('element locator');或 browser.moveToObject('element locator'); 给出错误: com.perfectomobile.selenium.server.PerfectoMobileDriver 无法转换为 org.openqa.selenium.interactions.HasTouchScreen

尽管 scroll 和 moveToObject 在其他屏幕上也有效。

谁能帮忙看看还有哪些其他选项可以用来点击 perfecto?

尝试browser.execute("arguments[0].click();", element);

其中元素是您要单击的对象。