robotframework

How to create 2 Objects after importing python based libraries in Robot Framework

空扰寡人 提交于 2020-04-30 06:30:30
问题 I am importing a python libraries and wanted to create two objects with different arguments and call method defined in the class. demo.py class Sample: def __init__(self,path,device): self.device=device self.path = path print(self.device) print(self.path) def getting_path(self): print(self.path) print(self.device) return self.path demo.robot =============== *** Settings *** *** Variables *** ${path} c: ${device} samsung ${path1} D: ${device1} samsung11 *** Test Cases *** Test Test_python

Robot Framework - Visitor Interface - How do I get keyword children of keywords?

浪尽此生 提交于 2020-04-11 04:03:09
问题 After implementing Robot's SuiteVisitor Interface the functions def start_suite(self, suite) , def start_test(self, test) and def start_keyword(self, keyword) are being called as expected. But when I try to list the keyword children of keywords, I get empty lists: def start_suite(self, suite): logger.console("Event Start Suite: {}".format(suite.name)) for x in suite.tests: logger.console("-> Test Name: {}".format(x)) for y in x.keywords: logger.console("---> Keyword: {}".format(y)) for z in y

How to find an element which contains   using Selenium

旧城冷巷雨未停 提交于 2020-03-16 06:47:24
问题 <td>By Company  </td> I need to capture xpath of the above element. I tried following alternatives, but nothing seems to be working in chrome. Can you please suggest any other option. "//td[normalize-space(text())='By Company\u00a0']" "//td[normalize-space(text())='By Company\u00a0\u00a0']" "//td[text()='By Company\u00a0']" "//td[text()[normalize-space(.)='By Company\u00a0']]" "//td[text()[normalize-space()='By Company\u00a0']]" 回答1: To locate the element: <td>By Company  </td> You can use

SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 81

∥☆過路亽.° 提交于 2020-03-10 05:05:12
问题 I am currently new to robot framework.I am currently using latest window version of chrome and chromedriver which is 80 but when i try to run the test it gives the message "SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 81" in pycharm but currently beta version of 81 is only available. I have tried uninstalling everthing and reinstalling it again but nothing works can anyone help me with this.Thank you! Screenshots below:

RemoteServer - How to use Java Keyword in Robotframework?

試著忘記壹切 提交于 2020-02-25 23:51:10
问题 I'm trying to implement JavaLibCore to use Java method in robotframework. I followed this tutorial : https://blog.codecentric.de/en/2016/01/robot-framework-tutorial-2016-remote-server-keywords-in-java/ RemoteServer class used is the following one : https://github.com/robotframework/jrobotremoteserver/blob/master/src/main/java/org/robotframework/remoteserver/RemoteServer.java Could you please help me to find a way to fix below error? Thank you a lot. Java Keyword class package keywords; import

How to spceify relative path in Robot Framework using Selenium

偶尔善良 提交于 2020-02-24 17:00:37
问题 I'm having a text file in Resource folder and my robot script in sibling folder namely Test, I need to use the relative path otherwise I need to specify the path explicitly once I changed the project location. TEST PROJECT (Root folder) | |_____ Resource (folder) | |_____ MyProfile.txt | |_____ MyPicture.jpg | |_____ Test (folder) |_____ MyTest.robot I want to access the MyProfile.txt in MyTest.robot using relative reference instead of absolute path. Kindly assist me. 回答1: We can give the

How to spceify relative path in Robot Framework using Selenium

☆樱花仙子☆ 提交于 2020-02-24 17:00:06
问题 I'm having a text file in Resource folder and my robot script in sibling folder namely Test, I need to use the relative path otherwise I need to specify the path explicitly once I changed the project location. TEST PROJECT (Root folder) | |_____ Resource (folder) | |_____ MyProfile.txt | |_____ MyPicture.jpg | |_____ Test (folder) |_____ MyTest.robot I want to access the MyProfile.txt in MyTest.robot using relative reference instead of absolute path. Kindly assist me. 回答1: We can give the

syntax highlight (.tmLanguage) in Sublime Text 3 for packages

流过昼夜 提交于 2020-02-24 01:55:29
问题 I work on this plugin Syntax highlight does not work with Sublime Text 3 when plugin is installed using package control. Error loading syntax file "Sublime Text 3/Installed Packages/robot.tmLanguage": Unable to open Sublime Text 3/Installed Packages/robot.tmLanguage The plugin is under Installed Packcages/Robot Framework Assistant.sublime-package , the file 'robot.tmLanguage' in inside Robot Framework Assistant.sublime-package archive. Here is how I set paths https://github.com/andriyko

How to feed a list of lists as an argument into a Robot Framework Test Template

会有一股神秘感。 提交于 2020-02-21 06:47:08
问题 I have the template keyword for my "do any combination" test, where ${labels} is a list and ${versions} is a list of lists: TT Process Instance Version Search [Arguments] ${labels} ${versions} Login Process Instance Version Search ${labels} ${versions} Then I create a test-suite file and place the following: *** Settings *** Test Template TT Process Instance Version Search *** Variables *** @{ProcessVersions} = ${Process0} ${Process1} ${Process2} @{SingleVersion} = ${Process2} @{Process0} = 1

I get an error while trying to install Ride

人走茶凉 提交于 2020-02-06 08:46:11
问题 I get an error when I type the command to install Robotframework ride on my Debian : pip3 install robotframework--ride The error is : Could not find a version that satisfies the requirement Pywin32 (from robotframework--ride) (from versions: ) No matching distribution found for Pywin32 (from robotframework--ride) Btw, it is quite strange that Pywin32 is mentionned while I'm not on Windows... I have both python2 and python3` on my machine and I've read many topics where I saw it could bring