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
0 answers

SessionNotCreatedError: A new session could not be created. Details: 'autoGrantPermissions' must be of type boolean type

unable to execute the Tests after "autoGrantPermissions=${booleanTrue}" introduced can any one help me with that everthing is upadted to latest version UI Automator 2 and other things are all updated Tried to allow permission popups internally
Vivi
  • 1
0
votes
0 answers

Assert self.caps, 'Driver capabilities must be defined' AssertionError: Driver capabilities must be defined

When running the following automation script using gigafox I am faced with the error Assert self.caps, 'Driver capabilities must be defined' AssertionError: Driver capabilities must be defined This occurs while I am running against a browser or an…
Kristofor
  • 3
  • 3
0
votes
0 answers

Any way to change desired capability for certain test cases

I don't know, is it valid question or not, but I need to know that can we change desired capability for certain test cases, such as my desired capabilities are like this: desired_caps = dict( platformName="Android", platformVersion="12", …
0
votes
0 answers

How to reject-unsupported-caps in Selenium Grid hub and node

I am testing different configurations for selenium grid 4 and in the official documentation is said that reject-unsupported-caps = true will "Allow the Distributor to reject a request immediately if the Grid does not support the requested…
0
votes
0 answers

How can I call desired capabilities for every test?

I'm new to appium and I have created set of test cases and for every test case I use @BeforeTest and add my desired capabilities is there a way I can just call them instead of writing them for every test? I tried to add desired capabilities into a…
0
votes
0 answers

Get Chrome/Firefox options after starting Selenium Webdriver

I want to read my current browser options from Python selenium webdriver which I defined before or changed within use. Unfortunately, they get encrypted or something, so that they are not stored directly in the capabilities object in the driver…
0
votes
1 answer

When execute the test script in appium it display AttributeError: can't set attribute

import time import ScrollUtil from appium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC desired_caps =…
0
votes
2 answers

Appium Inspector is throwing ERROR with the same successful desired capabilities which I was able to run my TestNG project

I wrote a simple Java-TestNG project in which the desired capabilities are { URL url = new URL("http://127.0.0.1:4724/wd/hub"); DesiredCapabilities caps = new DesiredCapabilities(); …
PraNuta
  • 629
  • 3
  • 12
  • 33
0
votes
2 answers

How to hide keyboard of ios real device with appium interface

I want to hide keyboard of my real device from appium interface. Is there any capability that i can use ? I tried some solutions but it didn't work for me. We are using hideKeyboard() on the code side but i dont know what we can use on interface of…
0
votes
2 answers

what are the appium capabilities for webviews in android?

I have tried using below capabilities { maxInstances: 1, browserName: '', appiumVersion: '1.18.2', platformName: 'android', platformVersion: '10.0', deviceName: 'device', webviewConnectTimeout: '90000', …
0
votes
1 answer

Can I declare 2 desired_cap in 1 script? One for hybrid app and one for the Chrome app?

I have a hybrid app with redirects on the chrome browser. In order to make appium recognize both apps, is there a possibility to declare a double desired_cap? I want to make the script to click on one of the hybrid app button, then after the…
0
votes
1 answer

Can not set ChromeOptions capability

What maven dependency should I add in my pom.xml and what library should I import in order to set this ChromeOptions capability? opts.setCapability(CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR, UnexpectedAlertBehaviour.IGNORE); Need to set it in order…
Prophet
  • 32,350
  • 22
  • 54
  • 79
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
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
1 answer

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…