我在下面的HTML路径下尝试捕获“收件箱”值,但无法使用Selenium Webdriver在google chrome中找到特定元素。
HTML路径:
<div style="position: absolute; visibility: inherit; overflow: hidden; cursor: default; color: white; text-align: left; width: 84px; height: 14px; padding-left: 1px; padding-top: 1px; left: 1px; top: 1px; background-color: rgb(102, 0, 153);">Inbox"
<img src="/images/tridown.gif" style="position: absolute; width: 8px; height: 4px; top: 9px; left: 75px;">
</div>"Inbox"
<img src="/images/tridown.gif" style="position: absolute; width: 8px; height: 4px; top: 9px; left: 75px;">
</div>
Run Code Online (Sandbox Code Playgroud)
我认为left和top是Inbox下拉菜单的唯一标识符,因此您能否帮助我们编写命令以从HTML上方获取“ Inbox”值