最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

selenium ide - Looping and clicking similar element that opens new tab - Stack Overflow

programmeradmin10浏览0评论

Is it possible to loop, individually click similar looking elements and from the new tab launched, click a download link?

Here the first element of the list:

<div role="listitem" aria-label="training session" class="row history-list__row history-list id-4021515650">
    ...
    <div class="col-xs-6 col-sm-4 col-md-4 col-lg-4 exercise-link">
        ...
        <div class="sport-name-container">
            <div class="data-column exercise-link">Mountain biking</div>
        </div>
    </div>
    ...
</div>

When I went through and recorded one click (by clicking Mountain Biking), I got the following commands logged:

  • click, css=.id-4021515650 > .col-xs-6 .data-column
  • store window handle, root
  • select window, handle=${win2368}

I suspect that handle=${win2368} is always going to be unique for each tab during each run thus impossible to figure out?

发布评论

评论列表(0)

  1. 暂无评论