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

57 questions
0
votes
0 answers

Which is the JAR File I need to fix this error -"The type org.openqa.selenium.remote.DesiredCapabilities is not accessible"

enter image description here I get this error - given for image for reference--Please help.. The type org.openqa.selenium.remote.DesiredCapabilities is not accessible
apurva
  • 1
0
votes
1 answer

log type 'client' not found in pytest selenium

logs = selenium.driver.get_log('client') selenium.common.exceptions.WebDriverException: Message: unknown error: log type 'client' not found (Session info: headless chrome=87.0.4280.88) (Driver info: chromedriver=2.38.552518…
0
votes
0 answers

Unable to create new remote session. desired capabilities -Google Chrome Desired Capabilities

Trying to initiate chrome 87 with the same version of Chrome driver. I get the below error message. Code looks like below ChromeOptions options = new…
0
votes
0 answers

How to connect to an Android App with Logged in Credentials with Appium?

I have an Android app whose login is through User_name and OTP. I login manually, and once I try to connect appium session with that app, it logs out and starts from User credential screen... How do I attach it to the existing sessions? Note:-While…
0
votes
1 answer

Unable to find a matching set of capabilities, python selenium in docker environment

I'm getting Error in docker environment: selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities. Here's my config: Python 3.9.0 selenium==3.141.0 webdriver-manager==3.2.2 pymongo==3.11.0 Mozilla…
0
votes
0 answers

How to set dynamic default download download directory property to ChromeDriver through JSON?

I was using my own code launch the driver hence used below code to set default download directory DesiredCapabilities caps = DesiredCapabilities.chrome(); ChromeOptions co = new ChromeOptions(); HashMap chromePrefs = new…
0
votes
1 answer

Unable to open 'File choose' dialog in MacOS using safaridriver in python

I am trying to launch file choose dialog by clicking on 'Choose File' button in a web portal. The click event happens, but the dialog is not displayed. Even if we click on the 'Choose File' button manually in the driver browser instance, the file…
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
  • 305
  • 2
  • 11
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
  • 5,901
  • 6
  • 13
  • 36
0
votes
1 answer

The method firefox() is undefined for the type DesiredCapabilities

I am trying to run the selenium grid in my machine and am getting the following for all the browsers at cap = DesiredCapabilities.firefox();: The method firefox() is undefined for the type DesiredCapabilities Below is my code package…
SUPARNA SOMAN
  • 1,001
  • 2
  • 10
  • 27
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
  • 791
  • 1
  • 7
  • 20
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
  • 143
  • 2
  • 12