org.openqa.selenium.InvalidArgumentException:Eclipse控制台中的参数无效

时间:2019-12-25 17:05:48

标签: java selenium-webdriver properties-file

在Eclipse中运行脚本时获取此异常:

driver.get(prop.getProperty("url"));

URL已在单独的属性文件中定义

[RemoteTestNG] detected TestNG version 6.14.3
Starting ChromeDriver 79.0.3945.36 (3582db32b33893869b8c1339e8f4d9ed1816f143-refs/branch-heads/3945@{#614}) on port 5268
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
Dec 25, 2019 10:33:24 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
FAILED: basePageNavigation
org.openqa.selenium.InvalidArgumentException: invalid argument

0 个答案:

没有答案