我正在尝试使用以下代码最大化浏览器窗口:
driver.manage().window().maximize();
但是,我得到以下例外:
[31mcucumber.runtime.CucumberException: Failed to instantiate class mapfre.automationTestsMcc.steps.mcs.ChangeIP
at cucumber.runtime.java.DefaultJavaObjectFactory.cacheNewInstance(DefaultJavaObjectFactory.java:40)
at cucumber.runtime.java.DefaultJavaObjectFactory.getInstance(DefaultJavaObjectFactory.java:26)
at cucumber.runtime.java.JavaStepDefinition.execute(JavaStepDefinition.java:35)
at cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:37)
任何想法为什么我得到这个?