Category : robot

I am facing issue while uploading image to android emulator. The following steps i am doing Step1: Converting image in base64 def get_as_base64(imageurl): with open(imageurl, "rb") as original_file: encoded_img = base64.decodestring(original_file.read()) return encoded_img I tried with this also but no luck. base64.decodestring(original_file.read().encode()) Step2: Trying to upload encoded_img to emulator storage. push file /storage/emulated/0/Download/test.jpg ${encoded_img} Here ..

Read more

I am getting the below error while running the robot file in a docker self hosted environment in ubuntu 20.04 LTS [ ERROR ] Error in file ‘/usr/src/project/tasks.robot’ on line 3: Importing library ‘RPA.Browser.Selenium’ failed: ModuleNotFoundError: No module named ‘RPA’ Traceback (most recent call last): None PYTHONPATH: /usr/local/bin /usr/lib/python36.zip /usr/lib/python3.6 /usr/lib/python3.6/lib-dynload /usr/local/lib/python3.6/dist-packages /usr/lib/python3/dist-packages Source: Python ..

Read more

I want to find a parent element of a text and get the deleted text through several operations This is also the code qr=driver.find_elements_by_tag_name(‘h1’)[1].parentElement.parentElement.parentElement.lastChild.firstChild.firstChild.childNodes[0].children[1].children[0].lastChild.lastChild.textContent print(qr) Source: Python..

Read more

I have a Keyword as below which will be executed for every keyword. Below is the code *** Settings *** Documentation Suite description Test Template Templete key Test Teardown Teardown key *** Test Cases *** Test case1 click element auto_id=1031 control_type=Button *** Keywords *** Templete key [Arguments] @{args} log ${Healing_Result} run keyword if ‘${HR}’==’Error’ or ..

Read more