1
resposta

Duvida ao Executar

Olá, bom dia. Estou com problemas ao tentar executar essa parte inicial do código.

package Solaris.Ubi;

import io.appium.java_client.AppiumDriver;
import io.appium.java_client.remote.MobileCapabilityType;
import io.appium.java_client.remote.MobilePlatform;
import org.openqa.selenium.remote.DesiredCapabilities;

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;

public class App
{
    public static void main( String[] args ) throws MalformedURLException {
        File apk =  new File("/home/yanka-araujo/IdeaProjects/SolarisUbi/src/main/resources/app-release.apk");

        DesiredCapabilities configuracoes = new DesiredCapabilities();
        configuracoes.setCapability(MobileCapabilityType.APP, apk.getAbsolutePath());
        configuracoes.setCapability(MobileCapabilityType.PLATFORM_NAME, MobilePlatform.ANDROID);
        configuracoes.setCapability(MobileCapabilityType.AUTOMATION_NAME, value:"UiAutomator2");

        URL urlConexao = new URL("http://127.0.0.1:4723/wd/hub");
        AppiumDriver driver = new AppiumDriver<>(urlConexao, configuracoes);



    }
}
1 resposta

Oi Yanka, tudo bem ?

Queria saber se resolveu os problemas ?