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
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
  • 1,944
  • 5
  • 26
  • 43
1
vote
1 answer

How to configure test case name in sauce labs for robot framework

I want to configure the name of the test case in Sauce Labs when viewing the test results. Currently the name that I am passing in the desired capabilities is popping up in the sauce labs and I am not able to understand which result is for which…
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…
1
vote
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",…
1
vote
1 answer

WebDriverException: Message: Service C:\Program Files\Mozilla Firefox\firefox.exe unexpectedly exited using DesiredCapabilities through Selenium

I need to use the most recent version of firefox on my Windows Computer. Hence dont want to use the default ghecko driver. Here is how close I got. import time from selenium import webdriver from selenium.webdriver.firefox.firefox_binary import…
1
vote
1 answer

Appium Sauce Labs - Unsupported OS/browser/version/device combo

I am trying to setup my first Appium test (not a native or hybrid app) in Sauce Labs and I'm getting a WebDriverException when trying to setup my capabilities: org.openqa.selenium.WebDriverException: Unable to parse remote response: Misconfigured --…
1
vote
1 answer

Use IE webdriver using selenium in python, without setting Security Modes

Is there a way to use the IE webdriver using selenium in Python script, without having to set the protected modes for all the Zones in IE browser settings? Note: Scenario is that the organisation does allow you to change the settings in IE browser,…
1
vote
1 answer

Common options object for all browser option classes in Selenium

I was earlier using DesiredCapabilities class to create a generic method for setting all capabilities of the browser, using an external file(key=value format). Here's my code public DesiredCapabilities setWebDriverCapabilities(String browser) throws…
1
vote
1 answer

set Capability in Serenity to ignore UnhandledAlertException

I have just started working with Cucumber + Serenity. I would like to ignore UnhandledAlertException. This is how chrome capabilities could be set in Selenium capabilities.setCapability(CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR,…
1
vote
1 answer

Protractor start with screen maximised firefox

I'm currently using the desired capability --start-maximized for chrome. Is there an equivalent option for firefox? Thanks!
Isabella
  • 143
  • 2
  • 12
1
vote
1 answer

Selenium InternetExplorerDriver doesn't get focus on the window

My project includes Selenium webdriver, JAVA, Maven, TestNG, Jenkins, Allure (reports). I have a few suites of tests with 100+ test cases, and I iterate them through 3 different browsers (the tests run in parallel using TestNG). There is one test…
1
vote
0 answers

Selenium Java proxy error

Can someone explain me how to solve this problems? After I try to run this code with IP rotate it stop work even on static IP. Metod below open cosdna.com and try to search for Ingridient of products. I get IP ban after i try to scrape about 20…
1
vote
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
  • 6,770
  • 7
  • 35
  • 69
1
vote
1 answer

Selenium Grid Node ignores capabilities, that Firefox Driver does not

I've encountered a problem with specifying the capabilities driver should meet. I need a browser instance to have pop ups blocked. (must have) Capabilities code: DesiredCapabilities caps = DesiredCapabilities().firefox(); FirefoxProfile profile =…
Adrian
  • 15
  • 3
0
votes
0 answers

Appium Start Inspector Session error: The desiredCapabilities object was not valid for the following reason(s): 'chromeOptions' must be of type object

{ "appPackage": "com.tencent.mm", "appActivity": ".ui.LauncherUI", "platformName": "Android", "deviceName": "M2010J19SC", "automationName": "Appium", "noReset": true, "chromeOptions":…
Venus
  • 845
  • 1
  • 8
  • 24