简体   繁体   中英

The import com.perfectomobile.selenium cannot be resolved

I have installed PerfectoMobile plug-in for Eclipse and was able to connect to Perfecto lab from Eclipse. I am trying to write the selenium automation code but the following WebDriver class is never recognized.

MobileDriver driver = new MobileDriver("mobilecloud.perfectomobile.com","username","password");

Where do we import the jar file for com.perfectomobile.selenium ?

我刚刚意识到,当我创建一个类型为Perfecto Lab Java Selenium Project的新项目时,我看到自动添加了com.perfectomobile.selenium的jar文件。

Step1 : Download and Install the perfecto plugin from : https://developers.perfectomobile.com/display/PD/IDE+Plugin+Installation

Step2 : on your IDE : Navigate to File > Settings (depends on your IDE) for IntelliJ IDEA 2018.2.7 navigate to this :

在此输入图像描述

Step3 : (remember you installed the plugin in step 1

在此输入图像描述

Step4 : Add a module (give it a Name eg. "Perfecto_module")

Once done you will see this

在此输入图像描述

Now its up-to you how you want to utilise this in your project, Good luck !

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM