VbScript单击没有ID或名称的按钮

时间:2017-01-06 21:49:45

标签: button vbscript click



<button class="yt-uix-button yt-uix-button-size-default yt-uix-button-default yt-uix-button-empty yt-uix-button-has-icon no-icon-markup comment-action-buttons-renderer-thumb yt-uix-sessionlink sprite-comment-actions sprite-like i-a-v-sprite-like" role="radio" aria-checked="false" aria-label="Like" onclick=";return false;" type="button" data-action="CAUQAhojejEzd3R0cXFteGZmZGR5YzUyM3RqdjRhd3ZhYXd0Znd0MDQqC0UwWTRQd0F0cFY4MAA4AEoVMTAyNjU4MjM5NzEyNjczNTY0MzYzUAA%3D" data-sessionlink="itct=CNgCEPBbIhMI--Ox47yu0QIVwjwdCh0b8Q_b" data-url="/comment_service_ajax?action_perform_comment_action=1" data-sessionlink-target="/comment_service_ajax?action_perform_comment_action=1" data-action-type="like"></button>
&#13;
&#13;
&#13;

我想通过数据操作点击此按钮,我该怎么做? 我不知道为什么代码在一行,但我需要搜索这个。 data-action =&#34; CAUQAhojejEzd3R0cXFteGZmZGR5YzUyM3RqdjRhd3ZhYXd0Znd0MDQqC0UwWTRQd0F0cFY4MAA4AEoVMTAyNjU4MjM5NzEyNjczNTY0MzYzUAA%3D&#34;

1 个答案:

答案 0 :(得分:0)

看一下下面的例子:

i {
  position: relative;
  top: 10px;
}