1. click() VS mouse.click()

    在写自动化脚本要勾选一个复选框时,用casper.mouse.click() 无法选上这个checkbox, 需要用到casper.click()才可以。但是同事那里用哪种写法都可以, 我们同样都是在test子命令下执行的脚本。

1     casper.then(function(){
2         this.mouse.click("#root > div > form > div:nth-child(8) > div > div > label > span.ant-checkbox > input");
3     });
4     casper.then(function(){
5         this.capture("test-demo0.2-"+(captureIdx++)+"-wrongreg2.png");
6     });
View Code

相关文章:

  • 2022-12-23
  • 2021-08-14
  • 2021-06-23
  • 2021-11-19
  • 2021-09-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2021-07-14
  • 2022-03-01
  • 2022-12-23
相关资源
相似解决方案