如何从请求URL验证参数? (硒)

问题描述 投票:0回答:1

我在该页面上:

http://localhost:8080/login?error=true

我如何检查error变量是否包含值true

enter image description here

这是我失败的尝试:

enter image description here

错误:

[info] Executing: | assertAttribute | error | true |
[info] Wait until the element is found
[error] Implicit Wait timed out after 10000ms
[error] Element erro not found

我正在使用:

  1. Selenium IDE ---> 3.16.1
  2. Katalon Recorder ---> 4.0.0
  3. Chrome 64位]--> 79.0.3945.130
  4. 我是测试领域的新手。有人可以帮忙吗? :(

我在该页面上:http:// localhost:8080 / login?error = true我如何检查错误变量是否包含值true?这是我失败的尝试:错误:[信息]执行中: assertAttribute |错误true ...

selenium selenium-ide katalon-recorder
1个回答
1
投票

下面的代码将起作用

© www.soinside.com 2019 - 2024. All rights reserved.