The error message "When using Robotframework-selenium with Edgebrowser, the 'options' object does not have the attribute 'use_chromium'" was displayed

Currently, I am utilizing the robot-framework-selenium(3.1.1) framework with python for specific tasks. For opening browsers such as Chrome, IE, and Firefox, I make use of the Open Browser keyword in Robot-framework. However, when attempting to open an Edge browser using the same Open Browser keyword with 'options=chromium=true' on Windows 8.1, it does not work. In Windows 10, even after setting up edgedriver.exe, I encounter the error,

"session not created : no matching capabilities found"

If anyone has experience working with edge-robotframework-win10, your insights would be greatly appreciated.

In my efforts to resolve this issue in Window 8.1 OS, I created an EdgePlugin.py class by copying code from a GitHub repository located at https://github.com/Accruent/robotframework-zoomba/blob/master/src/Zoomba/Helpers/EdgePlugin.py

The following versions are being used:

1. robot-framework==3.1.2
2. robotframework-SeleniumLibrary ==4.3.0
3. selenium==3.141.0
4. MSEdgeDriver 88.0.705.0
5. msedge-selenium-tools==3.141.2

for test_login.robot file

**Settings

    Library   SeleniumLibrary   plugins=pathto.EdgePlugin
    
**Keywords

    open browser  ${url}  ${browser}   remote_url=${grid_url}   options=use_chromium=True;headless=True

However, a new error has surfaced stating,

AttributeError: 'Options' object has no attribute 'use_chromium'

Answer №1

It's been a long time since I last used that approach, but have you considered setting the 'browser' variable to 'Edge'? It could also be possible that the way options are sent in is different when using a remote grid.

If not, is there a specific reason why you're not utilizing Zoomba? The GUI functionality of this library is an extension of SeleniumLibrary, offering all the necessary keywords and more.

You can follow the example below:

Library    Zoomba.GUILibrary     plugins=Zoomba.Helpers.EdgePlugin

Open Browser   https://www.google.com    browser=Edge     options=use_chromium=True

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Can the Page Object Model be integrated with the Gherkin syntax in Cucumber?

One of the key features of Test Automation's Page Object Model is how it allows us to connect pages together. Here's an example: WebDriver driver = new WebDriver() HomePage homePage = new HomePage(driver); LoginPage loginPage = homePage.GoToLogi ...

After hitting the submit button, it is important to collect the ID

When working with selenium in Java, I have encountered a scenario where clicking on the submit button generates a random ID on the screen (displayed within a div). I need to capture this generated ID and input it into another field to ensure all relevant ...

Initiate the Selenium server on a CentOS machine

After setting up a VM with centOS, I attempted to launch the selenium server by following the steps outlined in this tutorial. However, when trying to start the selenium server using webdriver-manager start, I encountered the following error: execvp(): No ...

Exploring Selenium: Clicking on Auto-Complete Suggestions using Python

Attempting to interact with an auto-complete search bar on the site in order to search for results. Wanting to click on the drop-down element that appears after entering a city name to perform a full city name search and obtain results. Below is the cod ...

Issue with launching Firefox while performing UI automation using Selenium technology

I am a beginner in automation and I have been attempting to start firefox using selenium webdriver with dot net and C# for my test cases. It was functioning perfectly last week, but now it suddenly refuses to launch at all. Error: Unable to bind to lockin ...

Troubleshooting issues with loading scripts in a scrapy (python) web scraper for a react/typescript application

I've been facing challenges with web scraping a specific webpage (beachvolleyball.nrw). In the past couple of days, I've experimented with various libraries but have struggled to get the script-tags to load properly. Although using the developer ...

Solving VBA Error with Selenium ChromeDriver

Just starting out with VBA and Selenium here so please bear with me if this is a basic question. I'm experimenting to see if I can use VBA to open a Chrome window to test if Selenium is working properly, using the code snippet below: Option Explicit ...

tips for managing file uploads on an ubuntu system using selenium and java

driver.findElement(By.xpath("//div[@class='invoiceUploadButton mat-elevation-z1 fileBrowseContainer']")).click(); After clicking the "Choose File" button to upload a file, a pop-up window appears for uploading the respective file. Howe ...

Is there a way to ensure that a method is called in every test whenever a specific element appears in Selenium with Java?

Is it practical to create a method that automatically triggers every time a loader appears in a test and waits for it to disappear? I initially considered using a listener + annotation, but have been unable to find guidance on how to implement this. As a ...

Using Selenium Webdriver with Node.js to Crop Images

Currently, I am using selenium-webdriver in combination with nodejs to extract information from a specific webpage. The page contains a captcha element from which I need to retrieve the image. Unfortunately, all the code snippets and solutions I came acros ...

Leveraging Selenium to extract text from a dynamically populated DIV using JavaScript

I am currently utilizing Selenium to automatically retrieve all comments from a New York Times article. Once the comments are loaded, my goal is to extract them and save the information for future use. However, upon inspecting the source code of the articl ...

Can Python be used with Selenium to automate the selection of an option in the "Region" drop-down menu?

I am trying to automate the selection of the first item in the "Region" combobox on a specific website here using Python and Selenium. chromeOptions = webdriver.ChromeOptions() prefs = {'profile.managed_default_content_settings.images':2, &apo ...

Can you explain the significance of src/main/java and src/test/java directories within a maven project?

When setting up a maven project for selenium automation, understanding the purposes of src/main/java and src/test/java is crucial. Can you provide insight on what each should include? Additionally, should Junit test cases be stored in src/main/java or sr ...

Having trouble sending input with send_keys in Python Selenium

Hello everyone, I have been encountering difficulties while attempting to input text data into the search box, as shown in the accompanying image. Despite my efforts to send the data using send_keys, I am consistently running into errors. The current focu ...

The SendKeys() function seems to be malfunctioning in a specific field within my form

I am experiencing a particular issue with the sendKeys() function. It seems to be malfunctioning only in one specific field within my form. Despite filling in the field, the value remains unchanged and the test passes without any error message. In a diffe ...

Encounters SessionNotCreatedException error when executing test in Firefox

I am currently utilizing the following versions: Selenium: 3.6.0 Mozilla: 56.0 Gecko Driver: V 0.19.0 Whenever I execute the testng.xml file for Mozilla Firefox, it throws the subsequent exception: Log: org.openqa.selenium.SessionNotCreatedException ...

Selenium python base separates driver file for the browser

I attempted to create a separate file for the browser driver, saving it as driver.py: from selenium import webdriver class MyDriver(): def __init__(self): self.driver = webdriver.Firefox() When I try to use it in another file, here is the code: ...

Logging Selenium errors and managing exceptions in a log file

I am currently working on a Selenium script and I am looking for a way to log failures to a file. For instance, if a page is not found or if selenium.waitForPageToLoad times out, instead of immediately moving to the tearDown() function, I want to record th ...

Receiving an error when trying to click the Webelement using Webelement.Click(), despite successfully clicking the Element

System Information Operating System: Windows Selenium Version: 2.53.1.0 Integrated Development Environment (IDE): Visual Studio 2013 Browser: Internet Explorer 11 version 11.420 An issue arises when attempting to click on an element within a webpage. Thi ...

What could be causing the invalid argument error in Python Selenium?

Hey there, I'm currently working on using selenium with my new Ubuntu computer, but I've encountered a problem that I can't seem to resolve. Here is the code snippet causing the issue: driver = webdriver.Firefox(executable_path='./g ...