Questions tagged [robotframework]

1

votes
0

answer
10

Views

How to verify the JSON result using the Robot Framework RESTinstance library

How to verify the JSON result using the Robot Framework RESTinstance library. I have API response body that have attached through the mail how to verify the result of the response body using RESTinstance library can anyone help regarding this. INFO { 'totalCount': 2, 'successCount': 2, 'errorCount'...
Nagaraj Hebbar
0

votes
0

answer
4

Views

Unable to Select from drop down using visible text in RobotFramework

In Robotframework, I am able to select a value the from drop down only by using 'Select From List By Index, Select From List By Label and Select From List By Value'. But my xml doesn't contain any Label or Value. So, is there any keyword to like Select From List By Visible Text to select by visible...
King
1

votes
1

answer
106

Views

How to get random numbers for user ID using Random Number Generator in robot framework

Not able to generate random number in RIDE. How to use a random number generator in robot framework? I tried this for scalar variable - Evaluate random.randint(0, sys.maxint) it is returning the same text, not returning the number. Do I need to install any library?
Thriveni
1

votes
1

answer
33

Views

How can format date to French value in RobotFramework?

Is it possible set a Local to Convert Date in Robotframework? ${today}= Get Time ${today_s}= Convert Date ${today} result_format=%A %d %B Thursday 04 April but i need Mardi 04 Avril EDIT with a workaround: *** Settings *** Library SeleniumLibrary Library Collections *** Variables *** &{d...
sgrillon
1

votes
1

answer
103

Views

Robotframework - Day of the month without zero-padded decimal number

I use this: ${today}= Get Time ${today_formated}= Convert Date ${today} result_format=%d The result is 01 for the 1st day of the month but I need 1. %d is Day of the month as a zero-padded decimal number. 01, 02, …, 31 How to remove 0 at the start? My question is on the day of the month not o...
sgrillon
1

votes
1

answer
43

Views

How to fail a test with conditions in Robot Framework

I have trouble writing if conditions in Robot Framework. I need to Know if a process is failed\succeeded\still in progress. I have a loop with timeout that waits until the process is failed\succeed(done) I not sure how to : - brake from a case and fail test - only if the process failed. - brake...
lihi_h3
1

votes
1

answer
37

Views

How to use if-else statements after picking a random number

I'm able to pick a random number from a list but now I don't know how to use the if-else statement so that it should match to condition to get further details with that number. I tried doing it with 'Run Keyword If' command but it didn't work out for me. Also tried using 'For loop' as well and it d...
Gaurav Marothia
1

votes
1

answer
36

Views

How to send parameter to _init_

I want to send parameter to _init_ method and dont know how. I try to use it like any other function: Library Functions.client_server.client WITH NAME cls cls.Start 1.1.1.1 In the above example i pass 1.1.1.1 to my Start function and i want to be able to pass argument to t...
falukky
1

votes
2

answer
46

Views

Is there a way to send log.html,report.html and output.xml in email after test completion in robot-framework?

I am trying to achieve one scenario in which i need to send log.html, report.html and output.xml directly in the email after completion of test suite and test case. I saw discussions on this part but not able to get the proper answer. My questions are: How we are able to achieve this task if its pos...
Chirag Dhingra
1

votes
1

answer
135

Views

RobotFramework - converting a date that has milliseconds in it

I'm converting the following date ${converted_randomization_date}= Convert Date 2017-01-03 00:00:00.000 date_format=%Y-%m-%d %H:%M:%S.%s result_format=%Y-%M-%d exclude_millis=False But getting the following error: ValueError: 's' is a bad directive in format '%Y-%m-%d %H:%M:%S.%s' Why is this?...
user3303266
1

votes
1

answer
406

Views

Unable to check text field entry using Robot Framework

I am a newbie to Robot Framework, I am trying to check if my text field contains the correct entry. As you can see in the above screenshot, I have South Boston in one of my address fields. The html for this is: I have tried the following to check for the text South Boston. Method1: ${addressText}...
user1523236
1

votes
2

answer
309

Views

How to use if/else condition inside a FOR loop in robot framework

This is my code: :FOR ${a} IN RANGE 2 ${Row_Count} \ Run Keyword If '${temp}'== 'True' Click Link xpath=//table[@id='listAllSTR']/tbody/tr[${a}]/td[2]/a and \ ... Screen validation for Answered ${STR_detail} and \ ... ELSE Continue For Loop \ Ru...
Parama Sivam
1

votes
2

answer
145

Views

Can I count rows across multiple pages of a table with robot framework?

I am quite new to robot, and have only been working solo on it at work for a month or so. Currently I am trying to count the total number on rows in a table within the application I am testing. (chrome based) This is what I am using: ${count}= get element count //table[@class='options-table']/t...
Laura Kendall
1

votes
1

answer
36

Views

After Upgrading Robot Framework to 3.1.1 the variable concatenation does not work

After recently upgrading my robot framework version from 3.0 to 3.1.1 my variable which I used to concatenate directly like Element Should Be Visible ${el}[contains(@class,'icon-expanded')] does no work any longer. I have found a workaround which needs me to explicitly concatenate the varible in...
JSLearner
1

votes
2

answer
53

Views

How to use the url that came in response

Help to understand and direct what needs to be done further. I use the robot framework version 3.1.1 and the Python 2.7 programming language to write the autotest script, and now there is a task to develop a test that will work with POST / GET requests. So, I make a POST request to the system to ini...
Геннадий
1

votes
1

answer
46

Views

Reuse of user keywords with multiple inputs

I'm trying to call same user keyword in different location using different inputs. How to do it? *** Keywords *** Enter the Server Name Wait until element is visible ${ServerIPField} ${Timeout} 'Input field not loaded' Log 'Input field loaded. Entering server name' Click element ${ServerIPF...
Ramesh Babu M S
1

votes
1

answer
38

Views

Get HTML tag of a given element in Robotframework

Let's say I have following HTML in my source code: ... some text ... Let's also say that I have located this element via: ... ${web_element} Get Webelement id:myElement ... Now I want to get the html tag of this located element, with something like: ... ${tag} Some Keyword To Get the HTML of a...
TheOnionMaster
0

votes
1

answer
17

Views

How to use multiple returned value from a python function in a robot file?

I have written a python function for fetching database credentials for different environments def database_creds(env): if env == 'staging' or env == 'qa': hostname = 'host1' username = 'user1' password = 'pass11' database = 'TestDb' elif env == 'production': hostname = 'host2' username = 'user2' pas...
Anju Abraham
1

votes
0

answer
421

Views

ExtendedRequestLibrary expected 2 non-keyword arguments, got 1

I am getting an error as Keyword 'ExtendedRequestsLibrary.Get Request' expected 2 non-keyword arguments, got 1 with below code. is it because of /ap? the question mark. because when I just take endpoint as /ap, it works. Create Password OAuth2 Session session https://11.11.11.11:8081/toke...
P S
1

votes
0

answer
197

Views

Robot Test not selecting new window

the application under test is an internal site. i am not able to select the new window when i run the test in IE. this is the part of my test that is having the error Run report input text txtSearchKey TestProduct click element searchButton click element xpath=//*[@id='tblPro...
jowsef
1

votes
1

answer
790

Views

InvalidElementStateException: Message: invalid element state: Element is not currently interactable and may not be manipulated

I'm using SeleniumLibrary for Robot Framework and i do have an issue regarding of Input Text function: HTML: What is the expected Fee Value? TEST.robot: Expected Fee Value - Value [Arguments] ${expectedFeeValue} Input Text //*[@id='gngFeeValue'] ${expectedFeeValue} I do get an error: Invali...
vancastrence
1

votes
1

answer
250

Views

Select dynamic button robot framework

I'm automating a test case in the robot framework. I have a problem, when I have to select a button that does not always have the same xpath. This is because it depends on a growing list, and each row of the list has an associated button. Example button xpath: xpath = //*[@id='tab_student']/ul[1]/li...
Marta79
1

votes
1

answer
892

Views

ie11 should start new session every time when run with robot framework but it's unable start new session

I was trying to implement a robot framework automation test for a sign-in page.when I run with IE browser the session wasn't closing for the 1st user and the user is in login even after using 'Delete All Cookies' keyword for the 2nd user.This is only happening for IE11 browser and rest of the browse...
Rasul Basha
1

votes
1

answer
1.1k

Views

Making a PUT request through Robot Framework using Requests Library

Background: New to Robot Framework but attempting at using the RequestsLibrary together with OperatingSystem and XML to automate some REST testing on RIDE. Requirement: Sending file with XML body and validate after receiving the XML response from the server. Problems: Current setup leading to 500 i...
RangHu
1

votes
0

answer
69

Views

In Robot Framework test case documentation, is there a way to have an indented sub list within a list item?

Sorry if the wording is a bit off. I am wanting to make a list similar to the one displayed below. This is a list item This is a sub This is a list item Currently, I am able to make a list in Robot Framework documentation like this... *** Test Cases *** Test Case 1 [Documentation] = Title =...
Jacob
1

votes
0

answer
123

Views

RF-AutoIT: Cant upload files in Chrome

I am trying to create a common exe for 3 browser based file upload using below code. IE (Choose File to Upload), Chrome (Open), Firefox (File Upload) This is working for IE but not for Chrome and FireFox. There is no error but its not showing given file along with path. I will be using this .exe i...
bbk
1

votes
3

answer
1.1k

Views

Appium can not start Mainactivity / Splashscreen

I have this script in Java : import java.io.File; import java.net.MalformedURLException; import java.net.URL; import org.openqa.selenium.interactions.internal.MouseAction.Button; import org.openqa.selenium.remote.DesiredCapabilities; import io.appium.java_client.android.AndroidDriver; import io.appi...
nhrcpt
1

votes
0

answer
78

Views

Using robotframework-imaplibrary python librarie in java based gradle projects

Hi there is a python based library for testing email robotframework-imaplibrary, but our project is java based gradle. Therefore I am looking for a way how to include this imap library to my project. What I've tried so far is: downloaded the library, extracted it to the project temporary folder and...
Dima Zeuge
1

votes
1

answer
958

Views

Robot Framework POST Request using RequestsLibrary passing wrong arguments

Context Using the RequestsLibrary to automate tests for sending XML Post Requests to a server and receiving a Response which should be validated. The test currently Gets the 'payload' of an XML file and attempts to pass this as the 'data' argument for a Post Request. The error Using the RequestsLib...
RangHu
1

votes
0

answer
49

Views

Robot Framework | download SSHLibrary | python2.7 :: how to fix the error : command 'gcc' failed exit status 1

i want to download SSHLibrary in order to develop test automation but every time he asks me again from other libraries to download .... such as *****paramico pyasnl pynacl***** etc until I get to cffi but the problem he shows me an error I can not solve {error : command 'gcc' failed exit status} 1....
Ghassen Ksila
1

votes
1

answer
1.2k

Views

“WebDriverException: Message: chrome not reachable” when trying to download file in headless mode in linux

I am trying to run robot framework selenium python tests on Linux machine using Chrome in headless mode. All of the tests run fine until I hit a button to download a file. When I try to download a file the following error is thrown: 'WebDriverException: Message: chrome not reachable (Session info:...
amal jayaraj
1

votes
0

answer
298

Views

Element not visible RobotframeWork

I am working with Robot FW for the first time and am facing an issue. I Have a button and I try clicking on it. I am receiving an exception Element Not Visible Can anyone explain why and a possible solution? Can I force seleniumLibrary to ignore the non-visible state of the elements? How can I force...
Wafae
1

votes
1

answer
112

Views

Using Opera with Robotframework on Windows

I am facing with trouble to use Opera for web site testing in Robotframework with SeleniumLibrary. I figured out because the code does not handle correctly the Windows path. (Default approach on Windows: using \ in path instead of /) To prove this I was able to manage Opera from python if I replace...
Krisz
1

votes
1

answer
56

Views

How to match the word in the statement

I am unable to find both the XXXX and the RTP_SS_RUNNING using should_match_regexp with robotframework from the below output. NAME STATUS -------------------------------------------------------------------------------- AAAA XXX_SS_RUNNING YYY...
Naveen kumar
1

votes
2

answer
73

Views

How to handle page loading scenarios where page loading icon displays randomly?

I have clicked a edit button in a webpage and verifying the page loading symbol which will not display all the times. Once page is loaded, loading symbol will get disappeared and my next screen will be displayed with Submit button. Below script works, when page loading symbol is displayed after cli...
Geetha A
1

votes
1

answer
259

Views

Cannot change text in input field - input element is not found, but it exists

I'm testing a web service with Selenium. Some elements on a page are modified by Angular. I'm trying to change text in an input field but when I check the source code it is not an input but a span element which is non-editable. For example, on https://www.w3schools.com/angular/tryit.asp?filename=try...
agam
1

votes
1

answer
247

Views

Special characters in drop-down list with Robot Framework (Selenium)

just wondering if any of you know how to handle special characters with a website that contains a drop-down list. I scripted the following in Robot Framework (Selenium) to verify the contents of a drop-down list: Verify all required fields and labels are present Verify a and lists of b for 'ööö'...
1

votes
3

answer
595

Views

Running robot framework scripts from batch file: Import Library Error

I have been successfully writing robot framework test scripts (Using Eclipse IDE, RED Robot Editor) and now want to start scheduling them using windows batch files. However, when I try and run the script from a windows command prompt, I'm getting an error (see below). As I mentioned, the scripts wor...
scttech
1

votes
1

answer
325

Views

Click on element in robot framework is not working in ie and work fine in chrome and fiorefox

Click Element is not working in Robot Framework, in the log.html it shows that it clicked on the element, but it does not actually happen in the browser. The element wich I want to click is: I run my test using: Execute JavaScript document.querySelector('.share-button-twitter').click() Execute Ja...
Wafae
1

votes
0

answer
826

Views

How to install wxPython 2.8.12.1 with unicode support to run RIDE

Not able to run ride.py on Mac. I have tried all possible solutions provided on the website but it still says Wrong wxPython version. You need to install wxPython 2.8.12.1 with unicode support to run RIDE. wxPython 2.8.12.1 can be downloaded from http://sourceforge.net/projects/wxpython/files/wxPyth...
TAJINDER SINGH

View additional questions