http://testingpai.com/article/1606720137383

可以在任意网页按 F12 进入开发者工具,选择 console 输入 JS 代码:

 window.scrollTo(0, document.body.scrollHeight);

 

 

点击元素:

document.getElementById('').click()

 

通过xpath,进行调试

var a = document.evaluate("//div[contains(text(),'零售')]",document).iterateNext()

  1. click()

 

参考文章:http://testingpai.com/article/1606720137383

输入的js一定要正确:

移动到底部:window.scrollTo(0,document.body.scrollHeight),console -> 输入js代码,回车,即可看到效果

python UI自动化,怎么在控制台调试代码?

 

相关文章:

  • 2021-10-17
  • 2022-12-23
  • 2021-12-02
  • 2021-08-30
  • 2022-12-23
  • 2022-01-26
  • 2021-05-05
  • 2021-04-08
猜你喜欢
  • 2021-08-18
  • 2021-08-16
  • 2021-08-09
  • 2022-01-01
  • 2022-12-23
相关资源
相似解决方案