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
2
votes
2 answers

How to pass the capabilities and options into Firefoxdriver using Selenium through Java

I have this: System.setProperty("webdriver.gecko.driver", "gecko/linux/geckodriver"); FirefoxProfile profile = new FirefoxProfile(); profile.setPreference("network.proxy.no_proxies_on", "localhost"); profile.setPreference("javascript.enabled",…
2
votes
3 answers

Is there any capabilities to set Firefox browser zoom level to some specific percent throughout script execution?

I'm using Firefox browser and i want to set the zoom level 90% while it executing the script. I have tried to set using JavascriptExecutor like - ((JavascriptExecutor)driver).executeScript("document.body.style.transform='scale(0.9)'"); Its working…
NarendraR
  • 7,577
  • 10
  • 44
  • 82
2
votes
2 answers

How to use existing app session in Appium

I want to use an existing app session while run my Appium test. So is there any way or Capabilities which i need to add in my code so it can continue the existing app session. I work around to find a solution over the internet unfortunately I'm not…
NarendraR
  • 7,577
  • 10
  • 44
  • 82
2
votes
1 answer

How do I correctly pass chrome capabilities into the default webdriver on Katalon studio

I'm currently trying to get a test running on Katalon Studio, and the specific outcome is determined by certain messages showing up in the browser console. I've managed to extract the console logs and can parse them easily enough, but I'm currently…
2
votes
1 answer

Is it possible to define custom capabilities for devices in Appium?

For instance, we have scenarios that require TouchID to be enabled and we have scenarios that require TouchID to be disabled. Appium itself doesn't expose such capabilities, so I'm wondering if it is possible to define custom capabilities for a…
Erik B
  • 40,889
  • 25
  • 119
  • 135
2
votes
1 answer

Getting OS info and Firefox browser version in Selenium 3

I am upgrading to Selenium 3 which has broken a function I wrote a long while back that retrieves OS and browser information from the WebDriver instance. This used to get the browser version and OS name: Capabilities cap = ((RemoteWebDriver)…
Selena
  • 2,208
  • 8
  • 29
  • 49
1
vote
4 answers

Disable the edge sidebar using Capabilities and EdgeOptions

All I want to know how I can disable edge sidebar using Edge capability. so i can use it in automation. I am aware about two different ways to it mentioned below. Using .send_keys Shift + Ctrl + / From registry Editor Open Registry Editor by typing…
1
vote
1 answer

Improving loading time of webpage in python via selenium

How to reduce time of explicit wait of a page with full of AJAX statements? wait=WebDriverWait(driver,timeout=77) gives an exact results of located elements that I need, but consumed time is huge. When I set timeout time to lower than 70 the…
1
vote
1 answer

org.openqa.selenium.UnsupportedCommandException for appium (devices) for sauce labs

I am trying to upgrade from Selenium 3 to Selenium 4. The capabilities and everything works fine for all the browsers remotely on sauce labs and works well even on local but when it comes to devices(Android Ipad/Mobile and iOS Ipad/Mobile) I am…
user110009
  • 25
  • 5
1
vote
1 answer

Selenium Grid 4, How to match a particular pattern capability in ruby 3.x.x

I'm unable to match the custom capabilities in ruby code for selenium grid 4 nodes. As per this documentation: https://www.selenium.dev/documentation/grid/configuration/cli_options/#matching-node-a I've tried to do the same thing in ruby like…
1
vote
0 answers

NullPointerException when starting an appium session, but the app opens

DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setCapability(MobileCapabilityType.NEW_COMMAND_TIMEOUT, 600); capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME,…
PraNuta
  • 629
  • 3
  • 12
  • 33
1
vote
1 answer

Using Selenium with Python to get INFO level browser console log events on Edge

I'm trying to get INFO level browser console log events from Edge using Python/Selenium on PyCharm but current configuration only returns WARNING level logs from browser. I'm using msedge.selenium_tools library intentionally because webdriver…
1
vote
3 answers

How to enable Downloading PDF files through Karate ChromeDriver?

When PDF hyperlinks selected using karate chromedriver, the files are opening in new tab rather than downloaded to the local system. I tried with below ChromeOptions while configuring the driver, but none of them looks worked for…
1
vote
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…
1
vote
2 answers

How to handle IE browser with Zoom other than 100%?

Some of the teams are using IE for which we added ie capabilities including the one specified below: cap.setCapability("ignoreZoomSetting", true); Now if my zoom is set to 100%, I don't face any issues with execution. But in case my zoom setting is…