webdriver的开在Gmail邮件 [英] Webdriver to open a mail in Gmail

查看:134
本文介绍了webdriver的开在Gmail邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开始使用webdriver的自动化我们的测试是100%的使用手册。

I have started using Webdriver to automate our testing which is 100% manual.

在的使用情况下,我需要点击发送到用户的收件箱中的链接之一。我对着在这种情况下,与Gmail的问题。在我登录后我无法弄清楚如何打开特定的电子邮件。

In one of the use cases I need to click on a link sent to the user's inbox. I am facing problems with Gmail in this case. After logging in I am not able to figure out how to open a particular email.

我知道邮件主题等,但我不能用它来访问的元素。 Gmail接收的为JSON的所有数据,然后通过js的功能构建整个页面。所以webdriver的不能访问任何使用收到的JSON数据建立的元素。

I know the email subject etc but I am unable use it to access the element. Gmail receives all its data as JSON and then build the entire page through js functions. So the webdriver is not able to access any of the elements built using the JSOn data received.

任何帮助是极大AP preciated。

Any help is greatly appreciated.

谢谢,
克里斯。

Thanks, Chris.

推荐答案

我不认为我正确地得到了你的问题,但我想你都很难找到定位器打开邮件你在搜索框中输入文字后, Gmail的。

I don't think I got your question correctly but I suppose you are having trouble finding the locator to open the mail after you've entered text in search box of gmail.

// DIV [5] / DIV / DIV /台/ TBODY / TR [N]// n是行号邮箱,对于第一个结果使用1和像

cliking上之前以此作为标识符元素。

use this as identifier for element before cliking on it.

希望这有助于。

这篇关于webdriver的开在Gmail邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆