Selenium webdriver 我无法在Intellij中的步骤定义文件中导入Selenium Webdriver

Selenium webdriver 我无法在Intellij中的步骤定义文件中导入Selenium Webdriver,selenium-webdriver,automation,cucumber,Selenium Webdriver,Automation,Cucumber,我正在尝试创建一个web驱动程序对象,但无法创建。 我在POM.xml中添加了以下依赖项 <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>3.141.59</version> </dep

我正在尝试创建一个web驱动程序对象,但无法创建。 我在POM.xml中添加了以下依赖项

    <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-java</artifactId>
        <version>3.141.59</version>
    </dependency>

请同时添加黄瓜依赖项

<dependency>
        <groupId>info.cukes</groupId>
        <artifactId>cucumber-java</artifactId>
        <version>1.2.5</version>
    </dependency>

    <dependency>
        <groupId>info.cukes</groupId>
        <artifactId>cucumber-jvm</artifactId>
        <version>1.2.5</version>
        <type>pom</type>
    </dependency>

    <dependency>
        <groupId>info.cukes</groupId>
        <artifactId>cucumber-junit</artifactId>
        <version>1.2.5</version>
    </dependency>
    <dependency>
        <groupId>info.cukes</groupId>
        <artifactId>cucumber-picocontainer</artifactId>
        <version>1.2.5</version>
        <scope>test</scope>
    </dependency>
不要张贴代码、数据、错误消息等的图像-在问题中复制或键入文本。