如何使用Selenium和Java修复此NullPointerException?

时间:2019-10-18 12:24:26

标签: selenium-webdriver

我正在尝试运行自动化脚本,正在启动URL,但得到--- applications: - name: facility path: ./facility routes: - route: example.com/facility - name: connect_DB path: ./connect_DB routes: - route: example.com/connect_DB buildpacks: - https://github.com/cloudfoundry/apt-buildpack.git - https://github.com/cloudfoundry/python-buildpack.git env: ACCEPT_EULA: Y

java.lang.NullPointerException

1 个答案:

答案 0 :(得分:0)

检查堆栈跟踪,以获取出现此错误的确切行。我的猜测是这样的:

driver.get(LoginPageData.URL);

因为我看不到您在任何地方初始化LoginPageData。