1

有什么方法WWW::Selenium可以让我遍历这个结构(HTML代码)并访问hrefs?

<div class="myGengo_wrap full_width">
<h1>Dashboard</h1>
    <div class="blue list">
    <span class="title">Sections </span>
        <span class="dashboard_master_language">
        <span class="dashboard_language wide">
            <a href="http://mygengo.com/string/p/demoproject-1/admin/languages/settings/en_us">Englisch (Master) </a>
        </span>
    </span>
    <span class="dashboard_languages">
        <span class="dashboard_language wide">
            <a href="http://mygengo.com/string/p/demoproject-1/admin/languages/settings/zh_cn">Chinese </a>
        </span>
        <span class="dashboard_language wide">
            <a href="http://mygengo.com/string/p/demoproject-1/admin/languages/settings/de_de">German </a>
        </span>
    </span>
      ...
      ...
</div> 
4

1 回答 1

1

有一个 get_all_links 方法 - 请参阅文档

于 2012-06-04T18:48:33.470 回答