Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

最近网页答题需要滑动验证码,求更 #8

Closed
sjtuwater opened this issue Nov 21, 2021 · 12 comments
Closed

最近网页答题需要滑动验证码,求更 #8

sjtuwater opened this issue Nov 21, 2021 · 12 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@sjtuwater
Copy link

最近网页自动答题需要滑动验证码块,求更

@latia0sama
Copy link

最近网页自动答题需要滑动验证码块,求更

我也是

@techxuexi21 techxuexi21 added bug Something isn't working help wanted Extra attention is needed labels Feb 6, 2022
@techxuexi21 techxuexi21 pinned this issue Feb 6, 2022
@fatfish516
Copy link

最近遇到网页自动答题需要滑动验证码块,然后界面就卡在自动答题页面不动了

@techxuexi21
Copy link
Contributor

@suxin0203 手动滑可以通过吗?

@zwyzzz888
Copy link

@Fireselector
Copy link

Fireselector commented Apr 7, 2022

手动滑不过去的怎么办?
滑块报错:

@ghost
Copy link

ghost commented Nov 30, 2022

<html>
 <body id="body-body">
   <div class="nc-xi-container">
    <div id="swiper_valid" class="nc-container" data-nc-idx="1"> 
     <div id="nc_1_wrapper" class="nc_wrapper"> 
      <div id="nc_1_n1t" class="nc_scale"> 
       <div id="nc_1__bg" class="nc_bg" style="width: 0px;"></div> 
       <span id="nc_1_n1z" class="nc_iconfont btn_slide" style="left: 0px;"></span> 
       <div id="nc_1__scale_text" class="scale_text slidetounlock">
        <span class="nc-lang-cnt" data-nc-lang="_startTEXT">请按住滑块,拖动到最右边</span>
       </div> 
       <div id="nc_1_clickCaptcha" class="clickCaptcha"> 
        <div class="clickCaptcha_text"> 
         <b id="nc_1__captcha_text" class="nc_captch_text"></b> 
         <i id="nc_1__btn_2" class="nc_iconfont nc_btn_2 btn_refresh"></i> 
        </div> 
        <div class="clickCaptcha_img"></div> 
        <div class="clickCaptcha_btn"></div> 
       </div> 
       <div id="nc_1_imgCaptcha" class="imgCaptcha"> 
        <div class="imgCaptcha_text">
         <input id="nc_1_captcha_input" maxlength="6" type="text" style="ime-mode:disabled" />
        </div> 
        <div class="imgCaptcha_img" id="nc_1__imgCaptcha_img"></div> 
        <i id="nc_1__btn_1" class="nc_iconfont nc_btn_1 btn_refresh" onclick="document.getElementById('nc_1__imgCaptcha_img').children[0].click()"></i> 
        <div class="imgCaptcha_btn"> 
         <div id="nc_1__captcha_img_text" class="nc_captcha_img_text"></div> 
         <div id="nc_1_scale_submit" class="nc_scale_submit"></div> 
        </div> 
       </div> 
       <div id="nc_1_cc" class="nc-cc"></div> 
       <i id="nc_1__voicebtn" tabindex="0" role="button" class="nc_voicebtn nc_iconfont" style="display:none"></i> 
       <b id="nc_1__helpbtn" class="nc_helpbtn"><span class="nc-lang-cnt" data-nc-lang="_learning">了解新功能</span></b> 
      </div> 
      <div id="nc_1__voice" class="nc_voice"></div> 
     </div> 
    </div>
   </div>
  </div>
 </body>
</html>

我拷贝了核心代码片段,并且测试了一下。我在F12窗口里面将第7行和第8行的width: 0pxleft: 0px从0改为260,然后再点一下滑动块就通过验证了。所以优化逻辑应该是第7行和第8行的width: 0pxleft: 0px从0变为260,然后模拟点击一下25行的nc_1__btn_1然后就可以了。

@techxuexi21 有空可以帮忙优化一下代码吗?谢谢!

@ghost
Copy link

ghost commented Nov 30, 2022

手动滑不过去的怎么办? 滑块报错:

你这个应该是超时了。

@zhaotuo0815
Copy link

<html>
 <body id="body-body">
   <div class="nc-xi-container">
    <div id="swiper_valid" class="nc-container" data-nc-idx="1"> 
     <div id="nc_1_wrapper" class="nc_wrapper"> 
      <div id="nc_1_n1t" class="nc_scale"> 
       <div id="nc_1__bg" class="nc_bg" style="width: 0px;"></div> 
       <span id="nc_1_n1z" class="nc_iconfont btn_slide" style="left: 0px;"></span> 
       <div id="nc_1__scale_text" class="scale_text slidetounlock">
        <span class="nc-lang-cnt" data-nc-lang="_startTEXT">请按住滑块,拖动到最右边</span>
       </div> 
       <div id="nc_1_clickCaptcha" class="clickCaptcha"> 
        <div class="clickCaptcha_text"> 
         <b id="nc_1__captcha_text" class="nc_captch_text"></b> 
         <i id="nc_1__btn_2" class="nc_iconfont nc_btn_2 btn_refresh"></i> 
        </div> 
        <div class="clickCaptcha_img"></div> 
        <div class="clickCaptcha_btn"></div> 
       </div> 
       <div id="nc_1_imgCaptcha" class="imgCaptcha"> 
        <div class="imgCaptcha_text">
         <input id="nc_1_captcha_input" maxlength="6" type="text" style="ime-mode:disabled" />
        </div> 
        <div class="imgCaptcha_img" id="nc_1__imgCaptcha_img"></div> 
        <i id="nc_1__btn_1" class="nc_iconfont nc_btn_1 btn_refresh" onclick="document.getElementById('nc_1__imgCaptcha_img').children[0].click()"></i> 
        <div class="imgCaptcha_btn"> 
         <div id="nc_1__captcha_img_text" class="nc_captcha_img_text"></div> 
         <div id="nc_1_scale_submit" class="nc_scale_submit"></div> 
        </div> 
       </div> 
       <div id="nc_1_cc" class="nc-cc"></div> 
       <i id="nc_1__voicebtn" tabindex="0" role="button" class="nc_voicebtn nc_iconfont" style="display:none"></i> 
       <b id="nc_1__helpbtn" class="nc_helpbtn"><span class="nc-lang-cnt" data-nc-lang="_learning">了解新功能</span></b> 
      </div> 
      <div id="nc_1__voice" class="nc_voice"></div> 
     </div> 
    </div>
   </div>
  </div>
 </body>
</html>

我拷贝了核心代码片段,并且测试了一下。我在F12窗口里面将第7行和第8行的width: 0pxleft: 0px从0改为260,然后再点一下滑动块就通过验证了。所以优化逻辑应该是第7行和第8行的width: 0pxleft: 0px从0变为260,然后模拟点击一下25行的nc_1__btn_1然后就可以了。

@techxuexi21 有空可以帮忙优化一下代码吗?谢谢!

有最新的代码吗?非常感谢

@langjiahui
Copy link

同求

@left0ver
Copy link

left0ver commented Dec 5, 2022

<html>
 <body id="body-body">
   <div class="nc-xi-container">
    <div id="swiper_valid" class="nc-container" data-nc-idx="1"> 
     <div id="nc_1_wrapper" class="nc_wrapper"> 
      <div id="nc_1_n1t" class="nc_scale"> 
       <div id="nc_1__bg" class="nc_bg" style="width: 0px;"></div> 
       <span id="nc_1_n1z" class="nc_iconfont btn_slide" style="left: 0px;"></span> 
       <div id="nc_1__scale_text" class="scale_text slidetounlock">
        <span class="nc-lang-cnt" data-nc-lang="_startTEXT">请按住滑块,拖动到最右边</span>
       </div> 
       <div id="nc_1_clickCaptcha" class="clickCaptcha"> 
        <div class="clickCaptcha_text"> 
         <b id="nc_1__captcha_text" class="nc_captch_text"></b> 
         <i id="nc_1__btn_2" class="nc_iconfont nc_btn_2 btn_refresh"></i> 
        </div> 
        <div class="clickCaptcha_img"></div> 
        <div class="clickCaptcha_btn"></div> 
       </div> 
       <div id="nc_1_imgCaptcha" class="imgCaptcha"> 
        <div class="imgCaptcha_text">
         <input id="nc_1_captcha_input" maxlength="6" type="text" style="ime-mode:disabled" />
        </div> 
        <div class="imgCaptcha_img" id="nc_1__imgCaptcha_img"></div> 
        <i id="nc_1__btn_1" class="nc_iconfont nc_btn_1 btn_refresh" onclick="document.getElementById('nc_1__imgCaptcha_img').children[0].click()"></i> 
        <div class="imgCaptcha_btn"> 
         <div id="nc_1__captcha_img_text" class="nc_captcha_img_text"></div> 
         <div id="nc_1_scale_submit" class="nc_scale_submit"></div> 
        </div> 
       </div> 
       <div id="nc_1_cc" class="nc-cc"></div> 
       <i id="nc_1__voicebtn" tabindex="0" role="button" class="nc_voicebtn nc_iconfont" style="display:none"></i> 
       <b id="nc_1__helpbtn" class="nc_helpbtn"><span class="nc-lang-cnt" data-nc-lang="_learning">了解新功能</span></b> 
      </div> 
      <div id="nc_1__voice" class="nc_voice"></div> 
     </div> 
    </div>
   </div>
  </div>
 </body>
</html>

我拷贝了核心代码片段,并且测试了一下。我在F12窗口里面将第7行和第8行的width: 0pxleft: 0px从0改为260,然后再点一下滑动块就通过验证了。所以优化逻辑应该是第7行和第8行的width: 0pxleft: 0px从0变为260,然后模拟点击一下25行的nc_1__btn_1然后就可以了。

@techxuexi21 有空可以帮忙优化一下代码吗?谢谢!

我尝试了一下,貌似不起作用,最后一步模拟点击nc_1__btn_1有问题,

 <div class="imgCaptcha_img" id="nc_1__imgCaptcha_img"></div> 
 <i id="nc_1__btn_1" class="nc_iconfont nc_btn_1 btn_refresh" onclick="document.getElementById('nc_1__imgCaptcha_img').children[0].click()"></i> 

这里可以看到nc_1__btn_1上有一个click事件,点击事件中获取了nc_1__imgCaptcha_img下面的第一个子元素,但是nc_1__imgCaptcha_img元素下面并没有子元素,我猜想是不是使用了js自动添加了,如果是js自动添加的,那么是在什么情况下添加的

@Masakazu7709
Copy link

<html>
 <body id="body-body">
   <div class="nc-xi-container">
    <div id="swiper_valid" class="nc-container" data-nc-idx="1"> 
     <div id="nc_1_wrapper" class="nc_wrapper"> 
      <div id="nc_1_n1t" class="nc_scale"> 
       <div id="nc_1__bg" class="nc_bg" style="width: 0px;"></div> 
       <span id="nc_1_n1z" class="nc_iconfont btn_slide" style="left: 0px;"></span> 
       <div id="nc_1__scale_text" class="scale_text slidetounlock">
        <span class="nc-lang-cnt" data-nc-lang="_startTEXT">请按住滑块,拖动到最右边</span>
       </div> 
       <div id="nc_1_clickCaptcha" class="clickCaptcha"> 
        <div class="clickCaptcha_text"> 
         <b id="nc_1__captcha_text" class="nc_captch_text"></b> 
         <i id="nc_1__btn_2" class="nc_iconfont nc_btn_2 btn_refresh"></i> 
        </div> 
        <div class="clickCaptcha_img"></div> 
        <div class="clickCaptcha_btn"></div> 
       </div> 
       <div id="nc_1_imgCaptcha" class="imgCaptcha"> 
        <div class="imgCaptcha_text">
         <input id="nc_1_captcha_input" maxlength="6" type="text" style="ime-mode:disabled" />
        </div> 
        <div class="imgCaptcha_img" id="nc_1__imgCaptcha_img"></div> 
        <i id="nc_1__btn_1" class="nc_iconfont nc_btn_1 btn_refresh" onclick="document.getElementById('nc_1__imgCaptcha_img').children[0].click()"></i> 
        <div class="imgCaptcha_btn"> 
         <div id="nc_1__captcha_img_text" class="nc_captcha_img_text"></div> 
         <div id="nc_1_scale_submit" class="nc_scale_submit"></div> 
        </div> 
       </div> 
       <div id="nc_1_cc" class="nc-cc"></div> 
       <i id="nc_1__voicebtn" tabindex="0" role="button" class="nc_voicebtn nc_iconfont" style="display:none"></i> 
       <b id="nc_1__helpbtn" class="nc_helpbtn"><span class="nc-lang-cnt" data-nc-lang="_learning">了解新功能</span></b> 
      </div> 
      <div id="nc_1__voice" class="nc_voice"></div> 
     </div> 
    </div>
   </div>
  </div>
 </body>
</html>

我拷贝了核心代码片段,并且测试了一下。我在F12窗口里面将第7行和第8行的和从0改为260,然后再点一下滑动块就通过验证了。所以优化逻辑应该是第7行和第8行的和从0变为260,然后模拟点击一下25行的然后就可以了。width: 0px``left: 0px``width: 0px``left: 0px``nc_1__btn_1
@techxuexi21 有空可以帮忙优化一下代码吗?谢谢!

我尝试了一下,貌似不起作用,最后一步模拟点击有问题,nc_1__btn_1

 <div class="imgCaptcha_img" id="nc_1__imgCaptcha_img"></div> 
 <i id="nc_1__btn_1" class="nc_iconfont nc_btn_1 btn_refresh" onclick="document.getElementById('nc_1__imgCaptcha_img').children[0].click()"></i> 

这里可以看到上有一个click事件,点击事件中获取了下面的第一个子元素,但是元素下面并没有子元素,我猜想是不是使用了js自动添加,如果是js自动添加的,那么是在什么情况下添加的nc_1__btn_1``nc_1__imgCaptcha_img``nc_1__imgCaptcha_img

请问这个代码要怎么用呢

@my1487
Copy link

my1487 commented Mar 25, 2023

手动能划,就是有点麻烦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests