qaf icon indicating copy to clipboard operation
qaf copied to clipboard

Unable to launch Mobile web browser [in Perfecto] for IOS/Android

Open CharithaL opened this issue 1 year ago • 3 comments

QAF Version

Note: only the latest version is supported

Steps To Reproduce

Used : Selenium version : 4.11.0 QAF version : 4.0.0-RC2 [qaf,qaf-support,qaf-support-mobile] java_client : 8.5.1 OpenJDK : 17

1.  Provided below in testNG.xml
     target.browser=safari
     target.cloud=perfecto
     target.os=iOS
     target.device=mobile
2. Provided below in perfecto.properties file under clouds folder : 
    remote.server = http://<cloudName>.perfectomobile.com/nexperiance/perfectomobile/wd/hub
    remote.port = 4732
    driver.name=appiumRemoteDriver
    appium.additional.capabilities={"perfecto:options":{"browserName":"Safari","securityToken":" ";"javascriptEnabled":true,"openDeviceTimeout":"5.0","platformName":"iOS"}}

Expected behavior

Should be able to create Driver Instance

Actual behavior

Unable to create driver instance Could not start a new session. Response code : 500 Message : Access denied - Bad Credentials. In the raw project the same credentials are working fine

Is the issue reproducible on runner?

  • [ ] QAS
  • [ ] Maven
  • [ ] Gradle
  • [ ] Ant
  • [ ] Eclipse

Test case sample

Please, share the test case (as small as possible) which shows the issue

CharithaL avatar Sep 04 '23 10:09 CharithaL

According to the error message Access denied - Bad Credentials, check security token. If doesn't work with correct security token connect with perfecto team to get help on how to provide credentials to access perfecto cloud.

cjayswal avatar Sep 05 '23 18:09 cjayswal

Hi cjayswal,

Thanks for your quick turn around. Now we are able to connect to perfecto, but unable to launch the URL using QAFExtendedWebDriver. Can you please help us on this.

CharithaL avatar Sep 06 '23 10:09 CharithaL

@CharithaL this is not right place for implementation help. It is recommended to post questions with details (your current configuration, relevant code, execution logs etc) in users group or in stack-overflow with qaf tag.

cjayswal avatar Sep 06 '23 16:09 cjayswal