<i id='hJfrm'><tr id='hJfrm'><dt id='hJfrm'><q id='hJfrm'><span id='hJfrm'><b id='hJfrm'><form id='hJfrm'><ins id='hJfrm'></ins><ul id='hJfrm'></ul><sub id='hJfrm'></sub></form><legend id='hJfrm'></legend><bdo id='hJfrm'><pre id='hJfrm'><center id='hJfrm'></center></pre></bdo></b><th id='hJfrm'></th></span></q></dt></tr></i><div id='hJfrm'><tfoot id='hJfrm'></tfoot><dl id='hJfrm'><fieldset id='hJfrm'></fieldset></dl></div>
      <tfoot id='hJfrm'></tfoot>
        <bdo id='hJfrm'></bdo><ul id='hJfrm'></ul>
    1. <legend id='hJfrm'><style id='hJfrm'><dir id='hJfrm'><q id='hJfrm'></q></dir></style></legend>

      <small id='hJfrm'></small><noframes id='hJfrm'>

    2. 如何从 Selenium 的 gmail 收件箱中单击特定的电子邮

      时间:2023-10-01

      <legend id='Uvaua'><style id='Uvaua'><dir id='Uvaua'><q id='Uvaua'></q></dir></style></legend>
      <i id='Uvaua'><tr id='Uvaua'><dt id='Uvaua'><q id='Uvaua'><span id='Uvaua'><b id='Uvaua'><form id='Uvaua'><ins id='Uvaua'></ins><ul id='Uvaua'></ul><sub id='Uvaua'></sub></form><legend id='Uvaua'></legend><bdo id='Uvaua'><pre id='Uvaua'><center id='Uvaua'></center></pre></bdo></b><th id='Uvaua'></th></span></q></dt></tr></i><div id='Uvaua'><tfoot id='Uvaua'></tfoot><dl id='Uvaua'><fieldset id='Uvaua'></fieldset></dl></div>
        <tbody id='Uvaua'></tbody>

            <small id='Uvaua'></small><noframes id='Uvaua'>

              <bdo id='Uvaua'></bdo><ul id='Uvaua'></ul>
            • <tfoot id='Uvaua'></tfoot>
                本文介绍了如何从 Selenium 的 gmail 收件箱中单击特定的电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我想点击特定的电子邮件,在这种情况下我应该怎么做?我看到有一个具有多个索引的 Webtable,我选择 1 &点击它.有没有人有代码如何处理 WebDriver 中的 webTables?在下面的屏幕中查看确切的情况 -http://screencast.com/t/XRbXQVygNkN6

                I hv to click on a particular email, in that case what should I do? I seen there is a Webtable with multiple indexes, I hv to select 1 & click on it. does anyone have code how to handle webTables in WebDriver? See exact situation in below screen- http://screencast.com/t/XRbXQVygNkN6

                我正在尝试使用以下代码 - 请建议我完成其余操作.

                I was trying with below code -Plz suggest me for rest of the action.

                gmail登录后-

                第一次点击收件箱链接--->>然后是促销--->>然后我点击特定的电子邮件

                1st Ihv clicked on inbox link--->>then Promotions--->>then I hv to click on particular email

                WebElement PromotionsSection =driver.findElement(By.xpath("//div[contains(@id,':2y')]"));
                PromotionsSection.click();
                
                WebElement email=driver.findElement(By.xpath(".//*[@id=':1g4']/b"));
                email.click();
                

                推荐答案

                认为你登录后在页面中.现在使用下面的代码:

                think that u r in page after login. Now use the below code:

                List<WebElement> email = driver.findElements(By.cssSelector("div.xT>div.y6>span>b"));
                
                for(WebElement emailsub : email){
                    if(emailsub.getText().equals("Your Subject Here") == true){
                
                           emailsub.click();
                           break;
                        }
                    }
                

                如果它与主题字符串匹配,这只会点击你的邮件.

                this will just click on ur mail if it matches the subject string.

                这篇关于如何从 Selenium 的 gmail 收件箱中单击特定的电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:是否可以使用 Espresso 的 IdlingResource 等到某个视图 下一篇:保存文件后自动启动单元测试

                相关文章

                最新文章

                  <tfoot id='iKt4O'></tfoot>

                  <small id='iKt4O'></small><noframes id='iKt4O'>

                  • <bdo id='iKt4O'></bdo><ul id='iKt4O'></ul>
                  <legend id='iKt4O'><style id='iKt4O'><dir id='iKt4O'><q id='iKt4O'></q></dir></style></legend>

                    <i id='iKt4O'><tr id='iKt4O'><dt id='iKt4O'><q id='iKt4O'><span id='iKt4O'><b id='iKt4O'><form id='iKt4O'><ins id='iKt4O'></ins><ul id='iKt4O'></ul><sub id='iKt4O'></sub></form><legend id='iKt4O'></legend><bdo id='iKt4O'><pre id='iKt4O'><center id='iKt4O'></center></pre></bdo></b><th id='iKt4O'></th></span></q></dt></tr></i><div id='iKt4O'><tfoot id='iKt4O'></tfoot><dl id='iKt4O'><fieldset id='iKt4O'></fieldset></dl></div>