Questions tagged [robotframework]

The Robot Framework is a versatile automation tool designed for acceptance testing and acceptance test-driven development (ATDD). Using a keyword-driven approach with tabular test data syntax, it simplifies the testing process. Developed in Python, this framework offers flexibility and efficiency.

Having trouble running selenium webdriver in robot framework

Encountering an issue while attempting to set up Selenium Webdriver with Robot Framework. WebDriverException: Message: Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' capability pro ...

I encountered an issue with Robot framework where it was unable to retrieve the locator. Despite attempting to copy the xpath, I continued to receive the error message stating "unable to find the locator."

Here are the elements I am currently working on automating an application using Robot framework, Selenium in PyCharm tool. As part of this process, I attempted to define a keyword to click on a sidebar entity named "GCC Intelligence", but encountered the ...

The function was expecting a list-like value, however, it received a

I've encountered an issue where a keyword calling a sub-keyword is returning two values that I'm attempting to store in an array assigned to the main keyword. However, when I try to log the returned values to the console, it gives an error messag ...

Impossible to Interact with Element in Internet Explorer Using Robot Framework

I'm facing an issue in my test case with the following locator: Double Click Element //input[@value='user1'] This locator corresponds to the snippet below: <tr onselectstart="listview_onselectstart(this, event)" tabindex="1" class="row altrow sele ...

Having trouble clicking on SPAN/Div with the Robot Framework Test Data Editor?

I am trying to click on a Panel element using Selenium in Robot Framework. Here is the code snippet: <div class="panel panel-default"> <div class="panel-heading> <h4 class="panel-title> <span href="#panel" data-parent="#accor ...

Having trouble getting the XPath selector to function properly with the Robocorp Selenium library

For my web automation project, I am utilizing Robocorp along with the Selenium library. Everything runs smoothly until I reach a particular page where I need to click on an icon labeled SQL. I specifically require the <a> element with the @href att ...

Error encountered while trying to utilize the modal input box in the Robot Framework Python script

I developed a Robot Framework code to interact with an input box inside a Modal that opens when a button is clicked. However, upon opening the modal, it displays a message stating that the "input box" is not interactable. It's worth noting that there is no ...

What is the best way to create a report.html file for each testsuit (.robot file) in RoboTFramework?

Currently, I am utilizing a single PyCharm project to execute various test files for a specific website. For instance, I have robot files containing test cases like: loginTest.robot, purchasetest.robot, signinwith_facebook.robot However, whenever I run t ...

Setting up Robot Framework with Selenium on a Mac OS X Lion operating system

Struggling to set up automation testing for a website on my Mac OS X Lion (10.7.2) system. I'm looking to write automated tests with robot framework using the SeleniumLibrary provided, and have Python 2.7 and Firefox 9 installed. I want to run this r ...

Is it possible to leverage Robot Framework for automating web and mobile applications, enabling simultaneous execution?

Is it possible to run both web and mobile applications simultaneously using the robot framework? If so, how can this be achieved? If we include libraries for both web and mobile applications, how does the robot framework differentiate between the two? Do ...

Ensuring Checkbox State Verification with Robot Framework

Upon loading the page, I am attempting to check the state of checkboxes. If they are not already checked, my aim is to mark them as selected in order to establish a baseline before proceeding with further testing. To do this, I have employed the run keywo ...

Frame keyword is operational on Chrome but encountering issues on Firefox

Having trouble selecting frames on Firefox, although it's working fine on Chrome. The following error is being displayed: An Element with the locator '//iframe[@name='slideInFrame']' could not be found. Attempting to automate t ...

Achieving permanent proxy settings in Firefox Webdriver: A step-by-step guide

As Geckodriver does not allow direct proxy settings, I will manually adjust it with the following code snippet: from selenium import webdriver myProxy = "xxxxxxxxx:yyyy" ip, port = myProxy.split(":") profile = webdriver.FirefoxProfile() profile.set_pref ...

How do I access the current instance of the Selenium webdriver in the Robot framework to create custom keywords?

I am working on a Maven-powered Robot Framework project in Java that utilizes Selenium 3.4.0 dependency, RobotFramework 3.0.2 dependency, Markus Bernhardt's Selenium2Library version 1.4.0.8, and RobotFramework-Maven-Plugin version 1.4.7. The robot te ...

How to deal with Chrome's notification for downloading multiple files on "www.xyz.com" in automation using Robot Framework and SeleniumLibrary

Currently I am facing a challenge in my automation testing process. I am trying to download 3 files with a single button click when utilizing Robot Framework with SeleniumLibrary and writing code in VSCode. Upon clicking the button, Chrome displays a popup ...

Dealing with numerous statements in the Run Keyword If command in Robot Framework

I am looking to run multiple statements only if a certain condition is met in Robot Framework. Here is the code snippet to review: Please note that this is just a sample code *** Settings *** Library Selenium2Library Library Collections *** Keywor ...

Tips for optimizing the Headless Chrome window in Robot Framework

I am having trouble launching Headless Chrome with a maximized window. I attempted two different solutions, but neither of them are working for me. Here is the first solution: Open Browser ${LOGIN_URL} headlesschrome Maximize Browser Window And her ...

RobotFramework encountered an unexpected issue - TypeError: WebDriver.__init__() was given an unknown argument 'service_log_path'

Today, I embarked on a journey to set up and utilize RobotFramework for the very first time. Following all the necessary installations, I eagerly wrote a test robot that aimed to simply open Chrome. However, every attempt I made resulted in an error messag ...

Encountering an error of "FAIL: NoSectionError: No section: 'default'" when attempting to connect Robot Framework with MySQL

After attempting to connect with a MySQL database using my code, I encountered an error message stating "FAIL: NoSectionError: No section: 'default'". I am seeking guidance on how to establish a successful connection with a MySQL database from wi ...

Utilizing selenium to input text values in robot framework

Using Robot Framework with Selenium 2.0, I have created a test that fills out a form and saves it. However, the issue I am facing is that when entering numeric values into text boxes, the default value of 0.0 is not being cleared. This results in the new v ...

Selenium for uploading a file on a Mac device

I am facing a challenge when trying to upload a file on my MAC using selenium with Java. The button I need to interact with does not have an input tag, so I attempted to use robot script and even apple script but haven't been successful. Is there anyone wh ...

Demonstration on how Robot Framework activates the Caps Lock key

Currently, I am utilizing the Robot Framework selenium2library to automate a Chromium Embedded application. One of the requirements is to verify whether a tooltip appears on the window when the Caps Lock key is activated. Activate Key #element_id \2 ...

Determine if the web driver is operational within Robot Framework

My Robot Framework test cases are ready to go, but I'm facing a structure dilemma in my project setup. Here's how it looks: TestProject |__ TestScenarios |__ TestCategory1 |__ TestCategory2 |__ __init__.py |__ RunTest.py I have a sp ...

Tips for executing a Python function from JavaScript, receiving input from an HTML text box

Currently, I am facing an issue with passing input from an HTML text box to a JavaScript variable. Once the input is stored in the JavaScript variable, it needs to be passed to a Python function for execution. Can someone provide assistance with this pro ...

python-selenium clicking on specific coordinates: "error when adding different types"

I'm having an issue with my automated tests on Robot Framework where I need to click on specific coordinates on a map. Here is the code snippet that I wrote: def click_at_coordinates(pos_x, pos_y): actions = ActionChains(get_driver()) my_map = get ...

WebDriverError: Event: The chromedriver service was unexpectedly closed. Status code: 3221225477

As a newcomer to Robot Framework, I've been using it with RIDE and following tutorials which have been going well until today. Everything was working fine yesterday and I haven't made any changes since then. However, now I am encountering an error when tr ...

WebDriver and Python: A guide on capturing a dynamically changing URL and storing it in a variable efficiently

Python and Selenium webdriver script: elem = driver.find_element_by_css_selector("#username") elem.send_keys("username") elem = driver.find_element_by_css_selector("#password") elem.send_keys("password") drive ...

SeleniumLibrary does not recognize the parameter executable_path

Transitioning from pytest + Selenium to robotframework + SeleniumLibrary + Selenium has presented some challenges for me. Even with SeleniumLibrary's simplified keyword structure, I have encountered difficulties performing basic operations that were s ...

Tips for managing popup browsers in Robot Framework

When using Robot Framework, I encountered a challenge with handling pop up browsers to allow access to the camera. The issue arises when trying to press Enter on the selected 'Allow' button after navigating there via the TAB key. Despite various attempts a ...

Unable to click on element at specific location

Hey there, I'm encountering an issue trying to click on a specific element and it's not working. I keep receiving the following error message: ElementClickInterceptedException: Message: element click intercepted: Element ... is not clickable at ...

Reduce the usage of web browser related Robot Framework keywords

After installing Robot Framework and setting up some test cases, I utilized the keyword Maximize Browser Window to enlarge the browser. However, now I am in need of a way to minimize it. Despite checking the official documentation, I could not find a speci ...

Steps to start a Chromium program with the help of Chromedriver

Can I adapt this python code to work with Robot Framework? from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.action_chains import ActionChains chrome_options = Options() chrome_options.bin ...

The element within the HTML code seems to be elusive when attempting to locate it using the Selenium Robot Framework

Displayed below is the HTML code for a toggle element representing a sidebar menu (nbn network rollout reports) that will reveal two links upon being clicked or expanded. An attempt was made to use the "Click Element" keyword with "network rollout repots ...

Check to see if it is possible to click an HTML div

Currently, I am engaged in Selenium and Robot Framework automated testing and in search of a method to automatically locate div tags that are capable of being clicked. The keyword Click Element works well when provided with a specific CSS selector, but ho ...

Obtain the src attribute of iframes using Robot Framework Selenium and store it as a variable

On a webpage, I have an iframe element that displays an html document representing a generated form. My goal is to create an automated Selenium script to validate specific values within this document. Currently, I am manually copying the URL from the ifram ...

Troubleshooting Negative Numbers in Python Regular Expressions

Currently, I am utilizing Python and RobotFramework for my testing purposes. Throughout my tests, I manipulate numbers in string format (such as $486,100, -23,000) and convert them to integers in order to compare them. Transforming positive numbers is no ...

Changing a fluid CSS selector into a fixed one

Trying to figure out how to use a dynamic CSS selector in my robot framework test. Is there a way to incorporate regex here? Here is the current selector I am using : #weekend11063281 > a:nth-child(1) Open to any suggestions on how to eliminate the d ...

Error messages cannot be dismissed in RobotFramework if the element does not exist

test cases using robotFramework: confirm that a user is able to send a request and be redirected to the next page Wait until element is enabled ${errorCodeMessage} Element Text Should Be ${errorCodeMessage} Vikailmoituksen tapahtumat ou ...

Accessing pop-up windows with the Selenium Robot Framework

I am having trouble accessing a pop-up window using the selenium webdriver in the robot framework. Here are the steps I have taken: Visit the site "" Click on the "Search By Vehicle" tab. A pop-up window opens. I attempted to access the pop-up by usin ...

Opera and Robotframework integration on Windows system

I am currently experiencing difficulty using Opera for website testing in Robotframework with SeleniumLibrary. I have discovered that the issue lies in the code's inability to handle Windows paths correctly. (On Windows, the default approach is to use ...

I am encountering a problem with Robotframework where I am unable to input the login Username

Hey everyone, I recently created a simple Robotframework program that tests the login page of LinkedIn by intentionally entering an invalid username and password. However, when the program runs, it stops at the Login page with the cursor in the Username ...

What sets Select Frame and Switch Window apart in Robot Framework?

I am a beginner when it comes to working with RF, and I have a question regarding the necessity of selecting a frame after switching windows and changing the main focus to the new window. Is it required to select a frame even if I don't plan on using it? ...

Require remote access to a Firefox browser on a connected machine through an open connection in a robot test case

Issue at hand: Attempting to run a Robothost Testcase which involves using the Open Connection keyword to connect to machineX and then utilizing the Open Browser keyword to open Firefox on machineX. However, instead of opening the Firefox browser on machin ...

Is it possible for Robot Framework to facilitate keyword-driven testing for a GUI developed in C#?

Just dipping my toes into the world of automated testing! I'm wondering how to create keyword-driven tests with the robot framework for a GUI developed with .NET. Feeling a bit unsure about this process. ...

Why bother writing tests using keywords and the robot-framework syntax in RobotFramework?

I'm pondering the benefits of utilizing RobotFramework for writing tests in its syntax compared to creating custom libraries. For instance, imagine we need to create a test that scans a directory and confirms no files have been altered. This could be achie ...

Problem importing Selenium module, any ideas?

I am currently diving into learning RobotFramework as a complete beginner. My background includes crafting automation scripts with ruby-watir and gherkin, along with dabbling in c# automation. However, I'm facing a roadblock when it comes to setting ...

Finding the li element within the ul container

Is there a way to determine the count of li elements that have been created within a ul element with a specific id? Below is an example of the structure: <ul id="someid"> <li class="someclass"></li> <li class="someclass"></l ...

What is the best way to update a Vue.js input element using JavaScript?

Looking to use a Vue.js input for automated testing purposes. How can I successfully set a value and submit it without it being automatically changed back to default data? I have tried the following method to set the value, but it keeps getting overridden ...

The functionality of the "input text" command in RobotFramework restricts text access

Currently, I am in the process of learning robot framework and facing a challenge while trying to search for a video. The issue arises when attempting to insert text into the search bar, returning an error: InvalidElementStateException: Message: Unable to ...

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 Edg ...

Error message: Unable to see Selenium command - Launch Browser - Robot Framework Ride

My computer is equipped with Selenium version 3.141.0 along with Python 3.7 Upon importing the library to Ride for a new Suite named WebAutomation, I encountered an issue where the OPEN BROWSER keyword does not appear in the test case (OpenBrowser): http ...