Selenium C#类名称多次出现

时间:2015-08-14 18:54:08

标签: c# visual-studio selenium selenium-webdriver

我使用selenuim,我尝试没有成功找到元素class =“user-card_photo”每次点击新浏览器,但我不能这样做。任何人都可以帮助我找到selenuim单向驱动程序找到类class =“user-card_photo”

  <body>
          <div id="search">
                <div class="justify search">
                    <div class="search_col">
                        <div class="user-card">
                            <div class="user-card_photo">

                            </div>
                            <div class="user-card_photo_section">

                            </div>
                        </div>                   
                        <div class="user-card">
                            <div class="user-card_photo">

                            </div>
                            <div class="user-card_photo_section">

                            </div>
                        </div>
                    </div>
                    <div class="search_col">
                        <div class="user-card">
                            <div class="user-card_photo">

                            </div>
                            <div class="user-card_photo_section">

                            </div>
                        </div>
                        <div class="user-card">
                            <div class="user-card_photo">

                            </div>
                            <div class="user-card_photo_section">

                            </div>
                        </div>
                        <div class="user-card">
                            <div class="user-card_photo">

                            </div>
                            <div class="user-card_photo_section">

                            </div>
                        </div>                 
                    </div>
                </div>
            </div>
        </body>

如果有人用c#代码回答我的问题,我将不胜感激

0 个答案:

没有答案