robotframework

Json handling in ROBOT

孤人 提交于 2019-11-26 17:38:45
问题 I have a Json file , in which there is a field which i need to edit and save the file for next usage. But the field which i need to edit is as shown below, The val i need to assing fr the field is generated Randomly in run time which i'll be capturing in a variable and pass it to this json specific key "dp" then save the json. The saved json will be used for REST POST url. { "p": "10", "v": 100, "vt": [ { "dp": "Field to be edited"(integer value) , ] } Please help me out , I am using ROBOT

Mac OSX - IllegalStateException: The driver is not executable:

瘦欲@ 提交于 2019-11-26 14:51:10
问题 Im new to Mac OSX. Downloaded my Robotframework(Selenium & Java) project from git and tried to execute the code locally wherein I received the below error. Suite setup failed: IllegalStateException: The driver is not executable: /Users/roja/Documents/GitHub/testautomation/chromedrivers/chromedriver_osx To rectify this issue, I followed the below but it didnt work. Upgraded the selenium-java and standalone version from 2.53.1 to 3.4.0. Driver path specified to Users/roja/automation

Pass existing Webdriver object to custom Python library for Robot Framework

六月ゝ 毕业季﹏ 提交于 2019-11-26 09:37:47
问题 I am trying to create a custom Python library for Robot Framework, but I\'m new to Python and Robot and I\'m not sure how to accomplish what I\'m trying to do. I want to pass the Webdriver object that Robot creates using Selenium2Library to my custom Python library so that I could use the Webdriver\'s methods, such as find_element_by_id . I\'ve seen some suggestions about how to do it here and here, but they\'re for Java libraries - I can\'t find any Python instructions. How would I go about