org.openqa.selenium.WebDriverException:无法创建临时目录:/ sd card/1339054625829.

Moh*_*ram 3 junit android sd-card

我试图使用Junit在Android模拟器上使用selenium自动化android(运行基本测试),我已将所有必需的jar添加到Classpath,启动模拟器,打开Web驱动程序并设置端口转发.

但是当我在Eclipse中运行Test时(作为JUnit Test运行).它失败了,我得到一个错误:

org.openqa.selenium.webdriverexception: cannot create temp directory: /sd card/1339054625829

A.J*_*A.J 7

如果在启动模拟器时没有为SD卡设置任何空间,则可能会出现此错误.您可以设置用作设备SD卡内存的内存量.您可以在编辑AVD详细信息时找到此信息

在此输入图像描述