Questions tagged [desiredcapabilities]

Introduction

Not all server implementations will support every WebDriver feature. Therefore, the client and server should use JSON objects with the properties listed below when describing which features a user requests that a session support. If a session cannot support a capability that is requested in the desired capabilities, no error is thrown; a read-only capabilities object is returned that indicates the capabilities the session actually supports. Learn more

Desired Capabilities : A Capabilities JSON Object sent by the client describing the capabilities a new session created by the server should possess. Any omitted keys implicitly indicate the corresponding capability is irrelevant

78 questions
0
votes
1 answer

Appium: Unable to find element in Android chrome browser by ID and Name, getting "InvalidArgumentException"

I'm using Appium (v1.15.1) to find email a password fields from "http://facebook.com" with Chrome browser on Android device, and i'm unable to find email and password fields elements using method findElementById('') and findElementByName(''). I've…
0
votes
1 answer

How to setup Firefox to download files without prompt during Katalon test execution?

I am trying to create a very simple Katalon test case that opens Firefox, goes to given URL and clicks a button to download a file. I have set up Desired Capabilities according to the Katalon documentation…
0
votes
1 answer

Desired capability not working in latest appium

Desiredcapabilities not supporting in latest appium version(io.appium > 5.0.0).Can you please suggest alternative for the desiredcapability to automate android App I am using latest version of appium…
Sadha Nanda
  • 337
  • 4
  • 15
0
votes
1 answer

Protractor W3C capability

I am using Protractor with Selenoid. I need to use the dockerized Windows images so that I can test Internet Explorer and Edge from Linux boxes. I was able to make it work from curl by running: curl -X POST http://127.0.0.1:4444/wd/hub/session -d…
0
votes
2 answers

How to provide custom capabilities on the selenium server?

I know that some selenium capabilities can be obtained with a method, one of them like this : driver.getCapabilities().getBrowserName(); It returns the value of the browser name. But if it refers to an available method, if I don't misunderstand it,…
frianH
  • 7,295
  • 6
  • 20
  • 45
0
votes
1 answer

Error: capability must be a valid BrowserStack App-Automate App URL

With https://api-cloud.browserstack.com/app-automate/upload I had generated a hash for my hybrid android app. I had set the desired capabillity in my program as follows: caps.SetCapability("app", "bs://hash_which_is given_by_browserstack"); When…
Frank
  • 831
  • 1
  • 11
  • 23
0
votes
1 answer

Sync fake audio and media stream for webrtc chrome

I'm currently using the chrome command-line-switches --use-fake-device-for-media-stream --use-file-for-fake-video-capture="file1.y4m" --use-file-for-fake-audio-capture="file2.wav" When I launch the following url https://appr.tc/?debug=loopback…
Isabella
  • 133
  • 1
  • 2
  • 13
0
votes
2 answers

Not able to find my object created for DesiredCapabilities class

I have started building up my first Appium test in Android and for that, I started writing my code. I instantiated my DesiredCapabilities object but when I am trying to use that reference, I cant see that reference. Link to Image for the…
Arka
  • 101
  • 1
  • 8
0
votes
0 answers

Has the Webdriver support to set proxy in the driver instance removed? Unable to set proxy in driver using desired capability

I have the following code: public class LoadBrowserAndSurf { @Test public void loadAndSurf() { System.setProperty("webdriver.chrome.driver", "D:\\Desktop\\Automation Requirements\\chromedriver\\chromedriver.exe"); String…
0
votes
1 answer

Different package names to be added in desired capabilities in appium

We have an android app which is composed of two different apps. Launcher activity is present in 1 project which has a package name in.foo.android.main.MainActivity while app package which is shown in uiautomator view is something…
Ankur08
  • 11
  • 1
  • 3
0
votes
1 answer

When exactly do we need to use MobileCapabilityType

I have come across two ways to add/set capabilities. capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "Android Emulator"); and capabilities.setCapability("deviceName","Android Emulator"); so my question is how are they different and…
Leyon Gudinho
  • 21
  • 1
  • 6
0
votes
2 answers

With Selenium 3.8.1, Firefox, Chrome, and IE driver capabilities are deprecated.

Can anybody advise how to remove warnings from FirefoxDriver (capabilities) and ChromeDriver (capabilities)? FIREFOX { @Override public DesiredCapabilities getDesiredCapabilities () { DesiredCapabilities…
0
votes
4 answers

Invalid capabilities in alwaysMatch: unhandledPromptBehavior is type boolean instead of string

I have upgraded my Selenium framework to the latest version. During execution of the code, I receive the following exception Exception: org.openqa.selenium.InvalidArgumentException: Invalid capabilities in alwaysMatch: unhandledPromptBehavior is…
-1
votes
2 answers

After downloading "Windows SDK Installer for windows 10" i cannot find the inspect tool in Windows Kits folder

I have downloaded windows SDK Installer from the following URL "https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk/" I have downloaded in my downloads folder. when I open the windows kits folder> 10 > Windows SDK, I can only see…
-1
votes
1 answer

java.lang.NoSuchMethodError: org.openqa.selenium.firefox.FirefoxOptions.merge(Capabilities) when trying to merge DesiredCapabilities using Selenium

When I try launching new Selenium/Firefox instance with DesiredCapabilities and FirfoxOptions I get the following code: Exception in thread "main" java.lang.NoSuchMethodError:…