gpt4 book ai didi

java - 查看端口问题中的元素[特殊]

转载 作者:行者123 更新时间:2023-12-01 04:16:27 29 4
gpt4 key购买 nike

我以一种特殊的方式收到以下错误。

The point at which the driver is attempting to click on the element was not scrolled into the viewport. 

用户故事是这样的,如果在检查组中进行选择,则将启用相应的具有很少字段的 div。类似地,对于 n 个选择,将有 n 个 DIV。当我在 div 中仅选择一个选项时,它会按预期工作,但不适用于多个选项。

我已经阅读了一些内容并尝试了有关上述 View 端口问题的所有可能的组合。下面给出了我的工作尝试和结果。

1) 尝试使用高级交互方法。 ( Action 类)-同样的异常

2) 使用java脚本执行器访问-相同的异常

还有一些内容很快就会更新。我已经尝试了所有定位机制的组合。一切都很完美,元素处于可见模式。但是当我对第二个 DIV 值执行任何操作时,我收到上述异常。

如何才能使元素进入工作模式?

编辑:

1.The DIV elements all are in view port and they all are accessible individually.
2. Div are enabled as per the check box selected
3.In a scenario, if we choose two check box, after a first selection you can edit the DIV and for the second selection the DIV will not be accessible.
4. both DIVs are identical with respect to the elements/attributes/properties of the elements.
5. When a Active div is edited no other div will be available in the UI.

由于某些原因,我无法在这里生成可重现的代码。

最佳答案

我解决了这个问题。实际上每个 DIV 都有一个框架。这些帧在编辑后隐藏,每次都会打开一个新的帧,所以当我访问第二个 div 时,我必须选择最新的帧。我刚刚轮询了帧数并继续处理最新的帧。

关于java - 查看端口问题中的元素[特殊],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19382377/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com