我有一个在localhost上运行的Web应用程序,我尝试对它进行测试。该应用程序运行良好,它执行POST请求到另一个端口。但是,申请。我的Chrome驱动程序配置:
System.setProperty("webdriver.chrome.driver", "/chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("http://localhost:63342/MyApplication");
应用程序向地址http://localhost:8991/ requestAddress 执行请求 但是,在测试中,它会因某种原因更改地址:http://localhost:63342/MyApplication/undefined/ requestAddress ,但这两个网址应该相同!出了什么问题?