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
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
  • 133
  • 1
  • 2
  • 13
1
vote
1 answer

What is the Desired Capabilities to handle this popup of Microsoft Edge?

There is popup which raised when trying to close tab of Microsoft Edge browser, Do we have any capabilities by which it can be control ? Or is there any relevant settings, from which it may not ask. Tried : …
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
1 answer

Selenium: Set the node thats executing by ip (or something else)

I am using the Selenium Grid with a hub on the server. To debug easier I want to execute the test on my specific pc and not on other nodes. (all Nodes are allways online) is there something like an ip-capability? (All Nodes running same Browser and…
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

Java Selenium 3 vs Selenium 4 - ChromeOptions and DesiredCapabilities

In my current project I use selenium 3 and I want to update to selenium 4. I have to convert the following code to selenium 4. Old code: ChromeOptions options = new ChromeOptions(); options.addArguments("--incognito"); DesiredCapabilities…
Word Place
  • 31
  • 3
0
votes
0 answers

python selenium grid desired_capabilities TypeError

I'm trying to do cross browser test with selenium grid and when I typing webdrive.Remote(command_executor, desired_capabilities) it shows me that desired_capabilities is Unexpected argument and when i run my test it's give my a TypeError: init()…
0
votes
1 answer

Possibility of Graying Out/Locking Status Icons for Forms that Particular Participants Are Not Eligible to Fill Out

I'm working on a REDCap project where we want to gray out and lock the status icons of forms that participants are not eligible to fill out. For example, if a participant is a male, they would not be filling out a pregnancy form. By default, the…
0
votes
0 answers

Accepting SSL certificates while accessing the application using selenium

While accessing the application there is a browser notification appearing to select the certificate in order to proceed further and view the login page. I need to run the tests in headless mode. I tried couple of things to do this: Using chrome…