This is a valid Atom 1.0 feed.
This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:creativeCommons="http://back ...
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:re="http://purl.org/atompub/rank/1.0">
<title type="text">Newest questions tagged robotframework - Stack Overflow</title>
<link rel="self" href="https://stackoverflow.com/feeds/tag?tagnames=robotframework&sort=newest" type="application/atom+xml" />
<link rel="alternate" href="https://stackoverflow.com/questions/tagged/?tagnames=robotframework&sort=newest" type="text/html" />
<subtitle>most recent 30 from stackoverflow.com</subtitle>
<updated>2024-04-27T01:02:39Z</updated>
<id>https://stackoverflow.com/feeds/tag?tagnames=robotframework&sort=newest</id>
<creativeCommons:license>https://creativecommons.org/licenses/by-sa/4.0/rdf</creativeCommons:license>
<entry>
<id>https://stackoverflow.com/q/78388504</id>
<re:rank scheme="https://stackoverflow.com">0</re:rank>
<title type="text">How to use Input Text with Tab Character (\t) using Robocorp (Robot Framework)?</title>
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<author>
<name>tzehuai</name>
<uri>https://stackoverflow.com/users/11269608</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78388504/how-to-use-input-text-with-tab-character-t-using-robocorp-robot-framework" />
<published>2024-04-26T06:01:14Z</published>
<updated>2024-04-26T07:07:12Z</updated>
<summary type="html">
<p>I'm having trouble with Input text with a tab character in a text box.</p>
<p>The following works perfectly fine with the newline character (\n), but I can't seem to find a tab character (\t)</p>
<pre><code>Input Text stPasteData-inputEl abc${\n}abc
</code></pre>
<p>Anyone has any idea?</p>
<p>Thanks!</p>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78385657</id>
<re:rank scheme="https://stackoverflow.com">0</re:rank>
<title type="text">starttime and endtime are not existing in robot framework output.xml file</title>
<category scheme="https://stackoverflow.com/tags" term="python" />
<category scheme="https://stackoverflow.com/tags" term="xml" />
<category scheme="https://stackoverflow.com/tags" term="automated-tests" />
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<author>
<name>Pasin Chantharathan</name>
<uri>https://stackoverflow.com/users/19786936</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78385657/starttime-and-endtime-are-not-existing-in-robot-framework-output-xml-file" />
<published>2024-04-25T15:24:51Z</published>
<updated>2024-04-26T10:22:54Z</updated>
<summary type="html">
<p>I tried to parse test result of Robot Framework to <code>postgres</code> by using TestArchiver (<a href="https://github.com/salabs/TestArchiver" rel="nofollow noreferrer">TestArchiver</a>) but the below error occurred:</p>
<pre><code>Parsing: 'output.xml'
Traceback (most recent call last):
 File &quot;/Library/Frameworks/Python.framework/Versions/3.12/bin/testarchiver&quot;, line 8, in &lt;module&gt;
 sys.exit(main())
 ^^^^^^
 File &quot;/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/test_archiver/output_parser.py&quot;, line 861, in main
 build_number_cache = parse_xml(output_file, args.format, connection, config, build_number_cache)
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File &quot;/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/test_archiver/output_parser.py&quot;, line 795, in parse_xml
 parser.feed(buffer)
 File &quot;/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/xml/sax/expatreader.py&quot;, line 211, in feed
 self._parser.Parse(data, isFinal)
 File &quot;/Users/sysadmin/build/v3.12.0/Modules/pyexpat.c&quot;, line 416, in StartElement
 File &quot;/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/xml/sax/expatreader.py&quot;, line 327, in start_element
 self._cont_handler.startElement(name, AttributesImpl(attrs))
 File &quot;/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/test_archiver/output_parser.py&quot;, line 91, in startElement
 self.archiver.begin_status(attrs.getValue('status'), attrs.getValue('starttime'),
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File &quot;/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/xml/sax/xmlreader.py&quot;, line 291, in getValue
 return self._attrs[name]
 ~~~~~~~~~~~^^^^^^
KeyError: 'starttime'
</code></pre>
<p>I used command:</p>
<pre><code>testarchiver --format robot --allow-major-schema-updates --dbengine postgresql --user postgres --pw ******* --database robot_test output.xml
</code></pre>
<p>And I tried looking in <code>output.xml</code> but there is no keyword starttime and endtime too.</p>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78383202</id>
<re:rank scheme="https://stackoverflow.com">-1</re:rank>
<title type="text">run robot framework test cases from git using jenkins</title>
<category scheme="https://stackoverflow.com/tags" term="github" />
<category scheme="https://stackoverflow.com/tags" term="jenkins" />
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<author>
<name>Rushikesh Jethure</name>
<uri>https://stackoverflow.com/users/23123030</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78383202/run-robot-framework-test-cases-from-git-using-jenkins" />
<published>2024-04-25T08:16:33Z</published>
<updated>2024-04-25T08:16:33Z</updated>
<summary type="html">
<p>I have done some scripting in the robot framework, and I have pushed it on git. Then I want to run it using Jenkins.I tried, but I am getting an error like <strong>'robot' is not recongizable</strong>. Please, can anyone help me? I have also installed robot framework plugins,but I am getting the same error.</p>
<p>(<a href="https://i.stack.imgur.com/mPfrX.png" rel="nofollow noreferrer">https://i.stack.imgur.com/mPfrX.png</a>)</p>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78380413</id>
<re:rank scheme="https://stackoverflow.com">0</re:rank>
<title type="text">Using modheader to Modify Headers in Selenium with Robot Framework</title>
<category scheme="https://stackoverflow.com/tags" term="javascript" />
<category scheme="https://stackoverflow.com/tags" term="python" />
<category scheme="https://stackoverflow.com/tags" term="selenium-webdriver" />
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<author>
<name>Tibor Száraz</name>
<uri>https://stackoverflow.com/users/5325776</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78380413/using-modheader-to-modify-headers-in-selenium-with-robot-framework" />
<published>2024-04-24T18:02:07Z</published>
<updated>2024-04-24T18:02:07Z</updated>
<summary type="html">
<p>I'm trying to use the modheader extension to modify headers in Chrome through Selenium in Robot Framework. I've created a custom library in Python to handle this, but I'm facing an issue with accessing the localStorage when I try to modify headers.</p>
<p>Here's the Python code I wrote for the custom library:</p>
<pre><code>from SeleniumLibrary.base import keyword
from robot.libraries.BuiltIn import BuiltIn
import sys

class ChromeDriverLib:
 def __init__(self):
 pass
 
 @property
 def get_lib(self):
 return BuiltIn().get_library_instance('SeleniumLibrary')

 @keyword(name='Open Browser With Headers')
 def open_the_browser_with_headers(self, url=&quot;DEFAULT_URL&quot;, browser=&quot;chrome&quot;, remote_url=False, header=&quot;DEFAULT_HEADER&quot;, value=&quot;DEFAULT_VALUE&quot;, header2=&quot;DEFAULT_HEADER&quot;, value2=&quot;DEFAULT_VALUE&quot;, header3=&quot;DEFAULT_HEADER&quot;, value3=&quot;DEFAULT_VALUE&quot;, download_dir=&quot;DEFAULT_DIR&quot;):
 browser_options = sys.modules['selenium.webdriver'].ChromeOptions()
 browser_options.add_extension('./modheader.crx')
 browser_options.add_argument('--ignore-certificate-errors')
 browser_options.add_argument(&quot;--kiosk&quot;)
 browser_options.add_argument(&quot;enable-features=NetworkServiceInProcess&quot;)
 browser_options.add_argument(&quot;--disable-dev-shm-usage&quot;)
 browser_options.add_experimental_option(&quot;prefs&quot;, {
 &quot;download.default_directory&quot;: download_dir,
 &quot;download.prompt_for_download&quot;: False,
 &quot;download.directory_upgrade&quot;: True,
 &quot;safebrowsing.enabled&quot;: True
 })
 browser_options = browser_options.to_capabilities()
 self.get_lib.open_browser(&quot;chrome-extension://idgpnmonknjnojddfkpgkljpfnnfcklj/icon.png&quot;, browser, None, remote_url, browser_options, None)
 self.get_lib.driver.set_window_size(1920, 1080)
 self.get_lib.driver.execute_script(
 &quot;localStorage.setItem('profiles', JSON.stringify([{title: 'Selenium', hideComment: true, appendMode: '', headers: [{enabled: true, name: '&quot; + header + &quot;', value: '&quot; + value + &quot;', comment: ''}, {enabled: true, name: '&quot; + header2 + &quot;', value: '&quot; + value2 + &quot;', comment: ''}, {enabled: true, name: '&quot; + header3 + &quot;', value: '&quot; + value3 + &quot;', comment: ''}], respHeaders: [], filters: []}]))&quot;
 )
 return self.get_lib.go_to(url)
</code></pre>
<p>I'm calling this library in my Robot Framework test case as follows:</p>
<pre><code>Library mypython.py
Open Browser With Headers url=${url} browser=chrome header=myheader value=myvalue header2=myheader2 value2=myvalue2 header3=myheader3 value3=myvalue3 download_dir=mydownloadir
</code></pre>
<p>When executing the test, I get a JavascriptException with the message:</p>
<pre><code>Message: javascript error: {&quot;status&quot;:18,&quot;value&quot;:&quot;Failed to read the 'localStorage' property from 'Window': Access is denied for this document.&quot;}
</code></pre>
<p>Can anyone help resolve this error or suggest a workaround for modifying headers using modheader in this setup?</p>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78378932</id>
<re:rank scheme="https://stackoverflow.com">0</re:rank>
<title type="text">How to call a function / Robotframework Keyword when appium detects a particular page</title>
<category scheme="https://stackoverflow.com/tags" term="automated-tests" />
<category scheme="https://stackoverflow.com/tags" term="appium" />
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<category scheme="https://stackoverflow.com/tags" term="keyword" />
<author>
<name>Shetty</name>
<uri>https://stackoverflow.com/users/24501044</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78378932/how-to-call-a-function-robotframework-keyword-when-appium-detects-a-particular" />
<published>2024-04-24T13:45:11Z</published>
<updated>2024-04-25T14:42:42Z</updated>
<summary type="html">
<p>I am currently running android mobile applications tests with appium, Robotframework and Python.
Scenario: A new feature has been implemented - App Pin. This page would show up after X seconds soon after the app opens. Now I need to adapt this new feature to all my existing test cases.</p>
<p>One way I can think is, Create a custom Robotframework keyword for app pin and use it where ever necessary. One thing I dont like about this approach is that I will be hardcoding the keyword according to the timing the App pin page is being showed up.</p>
<p>I was wondering if there is any other approach such that if appium itself detects that page, the keyword is called in?</p>
<p>Please let me know. Thank you!</p>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78372807</id>
<re:rank scheme="https://stackoverflow.com">0</re:rank>
<title type="text">Robot framework always fails a test case</title>
<category scheme="https://stackoverflow.com/tags" term="python" />
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<author>
<name>Veeresh Ambe</name>
<uri>https://stackoverflow.com/users/24608020</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78372807/robot-framework-always-fails-a-test-case" />
<published>2024-04-23T13:37:01Z</published>
<updated>2024-04-23T13:37:01Z</updated>
<summary type="html">
<p>I have created the following robot file and the pass string file</p>
<pre><code>*** Settings ***
Documentation Test cases
Library test.py
Variables EcuSanityTest_PassString.py
*** Test Cases ***
ECU_SANITY_TEST_1
 parse_logs ${ECU_SANITY_TEST_LOG_FILE} ${ECU_SANITY_TEST_1_PASS}

ECU_SANITY_TEST_2
 parse_logs ${ECU_SANITY_TEST_LOG_FILE} ${ECU_SANITY_TEST_2_PASS}

ECU_SANITY_TEST_3
 parse_logs ${ECU_SANITY_TEST_LOG_FILE} ${ECU_SANITY_TEST_3_PASS}

ECU_SANITY_TEST_4
 parse_logs ${ECU_SANITY_TEST_LOG_FILE} ${ECU_SANITY_TEST_4_PASS}

ECU_SANITY_TEST_5
 parse_logs ${ECU_SANITY_TEST_LOG_FILE} ${ECU_SANITY_TEST_5_PASS}
</code></pre>
<p>EcuSanityTest_PassString.py</p>
<pre><code>ECU_SANITY_TEST_1_PASS='''
ECU_SANITY_TEST_1:PASS
'''
ECU_SANITY_TEST_2_PASS='''
ECU_SANITY_TEST_2:PASS
'''
ECU_SANITY_TEST_3_PASS='''
ECU_SANITY_TEST_3:PASS
'''
ECU_SANITY_TEST_4_PASS='''
ECU_SANITY_TEST_4:PASS
'''
ECU_SANITY_TEST_5_PASS='''
ECU_SANITY_TEST_5:PASS
'''
</code></pre>
<p>This is the test.py file</p>
<pre><code>import os
import sys

def parse_logs(logFile, passText):
 passStringFound = False
 with open(logFile, &quot;r&quot;) as fp_log:
 lines = fp_log.readlines()
 for line in lines:
 split_lines = line.split()
 if passText in split_lines:
 passStringFound = True
 break

 if passStringFound == False:
 raise AssertionError('Test Failed')
</code></pre>
<p>the test log file contains the expected pass text. However the robot framework reports all the test cases as failed
log.txt</p>
<pre><code>ECU_SANITY_TEST_1:PASS
ECU_SANITY_TEST_3:PASS
ECU_SANITY_TEST_5:PASS
</code></pre>
<p>robot output</p>
<pre><code>==============================================================================
EcuSanityTest :: Test cases
==============================================================================
ECU_SANITY_TEST_1 | FAIL |
Test Failed
------------------------------------------------------------------------------
ECU_SANITY_TEST_2 | FAIL |
Test Failed
------------------------------------------------------------------------------
ECU_SANITY_TEST_3 | FAIL |
Test Failed
------------------------------------------------------------------------------
ECU_SANITY_TEST_4 | FAIL |
Test Failed
------------------------------------------------------------------------------
ECU_SANITY_TEST_5 | FAIL |
Test Failed
------------------------------------------------------------------------------
EcuSanityTest :: Test cases | FAIL |
5 tests, 0 passed, 5 failed
==============================================================================
</code></pre>
<p>Can anyone please help me understand why the robot framework always reports the test as failed?</p>
<p>i have tried returning true/false values from the test.py script but the problem still remains. i expect that the robot framework reports the tests 1,3 and 5 as passed and the rest as failed</p>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78369233</id>
<re:rank scheme="https://stackoverflow.com">-2</re:rank>
<title type="text">Noob here: How do I install the Robot Framework recorder Robocorp Chrome Extension on a Mac (or for Safari)? [closed]</title>
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<category scheme="https://stackoverflow.com/tags" term="robotframework-ide" />
<author>
<name>user16696911</name>
<uri>https://stackoverflow.com/users/16696911</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78369233/noob-here-how-do-i-install-the-robot-framework-recorder-robocorp-chrome-extensi" />
<published>2024-04-22T23:11:37Z</published>
<updated>2024-04-22T23:11:37Z</updated>
<summary type="html">
<p>I am new to Robot Framework and to Mac. I was able to download and install the Robocorp recording tool extension for Chrome on my Windows laptop. Would appreciate all help with download and installing the same/similar recording tool on my Mac.</p>
<p>TY
M</p>
<p>Have a .tar file download - not sure how to proceed to further steps. Please help!</p>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78354496</id>
<re:rank scheme="https://stackoverflow.com">1</re:rank>
<title type="text">How can I execute strings as robot framework code (Robot version 3.1.1)?</title>
<category scheme="https://stackoverflow.com/tags" term="python" />
<category scheme="https://stackoverflow.com/tags" term="automation" />
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<author>
<name>user24501621</name>
<uri>https://stackoverflow.com/users/24501621</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78354496/how-can-i-execute-strings-as-robot-framework-code-robot-version-3-1-1" />
<published>2024-04-19T14:41:48Z</published>
<updated>2024-04-19T14:48:33Z</updated>
<summary type="html">
<p>I'm using robot version 3.1.1 for test automation.</p>
<p>I have a JSON file that stores robot login commands based on the host name.</p>
<pre><code>{
 &quot;host1&quot; : [&quot;Open Connection host1&quot;, &quot;Login host1&quot;, ....]
}
</code></pre>
<p>I'm able to parse the JSON file, but how can I execute the strings as robot code?</p>
<p>This is what I tried:</p>
<pre><code> ${source_data} = OperatingSystem.Get File ${CURDIR}/auth.json
 ${data} = Evaluate json.loads($source_data) json

 : FOR ${command} IN @{data[&quot;host1&quot;]}
 \ Evaluate robot.run(${command})
</code></pre>
<p>I end up getting an error like this:
<em>Evaluating expression 'robot.run(Open Connection host1)' failed: SytntaxError: invalid syntax(, line 1)</em></p>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78354463</id>
<re:rank scheme="https://stackoverflow.com">-1</re:rank>
<title type="text">Appium Swipe keyword does not work in Tests</title>
<category scheme="https://stackoverflow.com/tags" term="python" />
<category scheme="https://stackoverflow.com/tags" term="android" />
<category scheme="https://stackoverflow.com/tags" term="appium" />
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<category scheme="https://stackoverflow.com/tags" term="swipe" />
<author>
<name>Shetty</name>
<uri>https://stackoverflow.com/users/24501044</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78354463/appium-swipe-keyword-does-not-work-in-tests" />
<published>2024-04-19T14:36:54Z</published>
<updated>2024-04-22T07:57:52Z</updated>
<summary type="html">
<p>I recently switched devices from windows to mac. I am currently running my tests using robotframework, Appium, Python.</p>
<p>However, when I run the tests, it looks like swipe action does not work anymore. It does not show any error,but it simply does not swipe the screen.</p>
<p>However, with the same code and same android device, if I tried on my windows system (which I was working previously), it works perfectly there. Here are the versions installed:</p>
<pre><code>Package Version
Appium-Python-Client 2.11.1
robotframework 6.1.1
robotframework-appiumlibrary 2.0.0
robotframework-archivelibrary 0.4.2
robotframework-assertion-engine 3.0.3
robotframework-browser 18.3.0
robotframework-oracledb 2.0.2
robotframework-pabot 2.18.0
robotframework-pythonlibcore 4.4.1
robotframework-requests 0.9.7
robotframework-seleniumlibrary 6.2.0
robotframework-stacktrace 0.4.1
</code></pre>
<p>Here is the sample code:
`</p>
<pre><code>&gt; ${Sign} = Wait Until Element is Visible. id=ch.post.it.nemo.app.zust.android.next:id/saveImageButton_portrait
&gt; IF ${Sign}
&gt; bi.Wait Until Keyword Succeeds 10 sec 0.5 sec Swipe By Percent 90 90 80 30 
 ELSE
&gt; bi.Log To Console ||--Page is not displayed--|| console=yes END`
</code></pre>
<p>Any Appium swipe keyword including Swipe, Swipe By Percent - does not work for me.</p>
<p>Could you please help resolve this issue?</p>
<p>Thank you in advance :)</p>
<p>I did try to match the Appium-Python-Client,robotframework, robotframework-appiumlibrary versions (which you see above) with the versions I have on windows. It still did not work. I am wondering what else might be the cause.</p>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78333730</id>
<re:rank scheme="https://stackoverflow.com">0</re:rank>
<title type="text">Right format of the element path</title>
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<author>
<name>akoel</name>
<uri>https://stackoverflow.com/users/1333565</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78333730/right-format-of-the-element-path" />
<published>2024-04-16T10:07:35Z</published>
<updated>2024-04-17T06:21:20Z</updated>
<summary type="html">
<p>I'd like to know what is the right (official) way to use element path in Robot Framework.
According to the doc:
<a href="https://i.stack.imgur.com/Mr4fA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Mr4fA.png" alt="enter image description here" /></a></p>
<p>Let's say I want to use xpath. If I understand the right way to use it in a KW for example:</p>
<pre><code>Wait Until Page Contains Element locator=xpath://*[@id=&quot;post-message-container&quot;]
</code></pre>
<p>But in many cases, googling it, I found this:</p>
<pre><code>Wait Until Page Contains Element xpath=//*[@id=&quot;post-message-container&quot;]
</code></pre>
<p>Surprisingly both work, but I don't think the second one should.
Could you help me to solve this confusion?</p>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78329138</id>
<re:rank scheme="https://stackoverflow.com">0</re:rank>
<title type="text">Running a Python script in Robot Framework and waiting for it to complete</title>
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<author>
<name>Mauro 101</name>
<uri>https://stackoverflow.com/users/24359468</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78329138/running-a-python-script-in-robot-framework-and-waiting-for-it-to-complete" />
<published>2024-04-15T14:33:18Z</published>
<updated>2024-04-16T07:29:07Z</updated>
<summary type="html">
<p>In my Robot Framework test, I am running a Python script that creates test data.
To start the script there are 2 options:
in PowerShell I can type:
<code>python testdatascript.py ABC TEST</code>
or
<code>python testdatascript.py</code> -&gt; the script runs and ask for input -&gt; <code>ABC</code> -&gt; next input <code>TEST</code></p>
<p>Where &quot;ABC&quot; = sourceDB, and &quot;TEST&quot; = environment</p>
<p>I think current code I have is not 'waiting' to finish the generation, as when I manually run it in PowerShell it can take 20secs - 1min for all test data to be generated before completing the script. While in Robot Framework it finishes in 1-2 seconds (without making the files with testdata)</p>
<p>The Python script is working fine and works flawless when using manually.</p>
<p>Currently I have this:</p>
<pre><code>${RESULT}= Run Process Python c:/path/testdatascript.py ABC TEST shell=yes stdout=stdout.txt 
</code></pre>
<p>it currently gives back <code>&lt;result object with rc 0&gt;</code> (which is 0 errors if I am correct) But does not create the testdata.</p>
<p>If the script runs successfully, it will print: <code>successfully created the testdata</code> If it fails it will print an error code.
I started looking into <code>Start Process</code> , but I'm not experienced enough in Robot framework to know how that would work.</p>
<p><strong>Perfect solution</strong> would be if the Run/Start Process kicks of the .py script and checks if the Successfull line is shown before continuing the test.</p>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78328798</id>
<re:rank scheme="https://stackoverflow.com">0</re:rank>
<title type="text">Robot Framework Database Library calling Oracle store procedure fails with character to number conversion error</title>
<category scheme="https://stackoverflow.com/tags" term="python" />
<category scheme="https://stackoverflow.com/tags" term="oracle" />
<category scheme="https://stackoverflow.com/tags" term="plsql" />
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<author>
<name>BernardV</name>
<uri>https://stackoverflow.com/users/3324415</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78328798/robot-framework-database-library-calling-oracle-store-procedure-fails-with-chara" />
<published>2024-04-15T13:36:10Z</published>
<updated>2024-04-17T11:14:05Z</updated>
<summary type="html">
<p>I have an <code>Oracle PL/SQL</code> procedure that I can directly call as follows without problem:</p>
<p><code>BEGIN example_package_name.example_procedure(p_item_no =&gt; 123456, p_send_now =&gt; true); END;</code></p>
<p>(Note: <code>p_item_no</code> expects a <code>NUMBER</code> and <code>p_send_now</code> expects a <code>BOOLEAN</code>)</p>
<p>I am attempting to run this from within my <code>Robot Framework</code> test automation framework as shown below.</p>
<p>First I have a small helper wrapper method for <code>robotframework-databaselibrary</code>:</p>
<pre><code>Execute SQL Store Procedure
 [Arguments]
 ... ${target_database}
 ... ${target_store_procedure}
 ... ${store_procedure_arguments}
 ... ${timeout}=5 minutes
 [Documentation] Small wrapper around DatabaseLibrary for the: Call Stored Procedure keyword.
 [Timeout] ${timeout}

 __Open connection to target database ${target_database}
 DatabaseLibrary.Set Auto Commit autoCommit=${True}
 DatabaseLibrary.Call Stored Procedure ${target_store_procedure} ${store_procedure_arguments}

 Close connection from the current database
</code></pre>
<p>Next from my test I am attempting something as follows:</p>
<pre><code>${item_no_int}= Convert To Integer ${test_item_dictionary.item_no}
${example_procedure_argument_list}= Create List p_item_no =&gt; ${item_no_int} p_send_now =&gt; ${True}
Execute SQL Store Procedure target_database=test_db_name target_store_procedure=example_package_name.example_procedure store_procedure_arguments=${example_procedure_argument_list}
</code></pre>
<p>My error reads:</p>
<blockquote>
<p>[info (+0.10s)] Executing : Call Stored Procedure | example_package_name.example_procedure | ['p_item_no =&gt; 123456', 'p_send_now =&gt; True']</p>
</blockquote>
<blockquote>
<p>[FAIL] DatabaseError:ORA-06502: PL/SQL: numeric or value error: character to number conversion error ORA-06512: at line 1 Help: <a href="https://docs.oracle.com/error-help/db/ora-06502/" rel="nofollow noreferrer">https://docs.oracle.com/error-help/db/ora-06502/</a></p>
</blockquote>
<p>Naturally I have been trying to ensure that my data is of the correct type when leaving Robot Framework, when reading the documentation on the Robot Framework: <code>DatabaseLibrary.Call Stored Procedure</code> keyword, I see:</p>
<pre><code>def call_stored_procedure(
 self, spName: str, spParams: Optional[List[str]] = None, sansTran: bool = False, alias: Optional[str] = None
):
</code></pre>
<p>With description:</p>
<blockquote>
<p>Calls a stored procedure <code>spName</code> with the <code>spParams</code> - a <em>list</em> of
parameters the procedure requires.</p>
</blockquote>
<p>Is it be possible that the Keyword <code>DatabaseLibrary.Call Stored Procedure</code> / <code>spParams: Optional[List[str]]</code> does not end up preserving one's intended data types? Or is something else perhaps missing on my part?</p>
<p>I am running:</p>
<ul>
<li><code>robotframework&gt;=7.0.0</code></li>
<li><code>robotframework-databaselibrary&gt;=1.4.3</code></li>
<li><code>oracledb&gt;=2.1.0</code></li>
</ul>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78326593</id>
<re:rank scheme="https://stackoverflow.com">0</re:rank>
<title type="text">Keyword name cannot be empty after post request with expected_status in robotframework</title>
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<category scheme="https://stackoverflow.com/tags" term="web-api-testing" />
<author>
<name>marysh</name>
<uri>https://stackoverflow.com/users/13665269</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78326593/keyword-name-cannot-be-empty-after-post-request-with-expected-status-in-robotfra" />
<published>2024-04-15T07:03:47Z</published>
<updated>2024-04-15T07:44:34Z</updated>
<summary type="html">
<p><a href="https://i.stack.imgur.com/nv7mU.png" rel="nofollow noreferrer">enter image description here</a>I'm going create Negative Test with post request by expected_status,but I confront Keyword name cannot be empty message.</p>
<pre><code>InvalidPassword Test
 [Tags] InvalidPassword
 Create Session InvalidPassword ${url_api}/${end_point_login} 
 Log To Console ${url_api}/${end_point_login}
 ${body}= Create Dictionary mobile=***** password=****** key=1
 ${header}= Create Dictionary Accept=application/Json
 ${response}= POST On Session InvalidPassword ${url_api}/${end_point_login} data=${body} expected_status=422 
</code></pre>
<p><a href="https://i.stack.imgur.com/7gmZr.png" rel="nofollow noreferrer">enter image description here</a></p>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78312313</id>
<re:rank scheme="https://stackoverflow.com">0</re:rank>
<title type="text">How to find valid locator for images using Selenium?</title>
<category scheme="https://stackoverflow.com/tags" term="css" />
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<author>
<name>msb</name>
<uri>https://stackoverflow.com/users/24245028</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78312313/how-to-find-valid-locator-for-images-using-selenium" />
<published>2024-04-11T18:11:06Z</published>
<updated>2024-04-12T12:23:58Z</updated>
<summary type="html">
<p>I am trying to write a simple code to go to <a href="https://rpachallenge.com" rel="nofollow noreferrer">rpachallenge.com</a>, switch to the Movie Search Tab, search for a movie, then download the three resulting movies' title card image, title, and description to a JSON file. So far I'm able to do everything up to and including searching, but I'm unable to find a unique valid locator for the title cards.</p>
<p>When I inspect the page, each of the three resulting movies has code like the following:</p>
<pre><code>&lt;div _ngcontent-c3 class=&quot;cardItem&quot;&gt;
 &lt;div _ngcontent-3 class=&quot;col s4 &quot;&gt;
 &lt;!--bindings={&quot;ng-reflect-ng-if&quot;:&quot;/d5NXSklXo0qyIYkgV94XAgMIckC.j&quot;}--&gt;
 &lt;div _ngcontent-c3 class=&quot;card col s12&quot;&gt; =
 &lt;div _ngcontent-c3 class=&quot;card-image&quot;&gt;
 &lt;img _ngcontent-c3 src=​&quot;http:​/​/​image.tmdb.org/​t/​p/​w500//d5NXSklXo0qyIYkgV94XAgMIckC.jpg&quot;&gt;​
 &lt;!--bindings={ &quot;ng-reflect-ng-if&quot;: &quot;true&quot; &gt;--&gt;
 ...
 &lt;/div&gt;
 &lt;div _ngcontent-c3 class=&quot;card-content&quot;&gt;
 &lt;span _ngcontent-c3 class=&quot;card-title activator&quot;&gt;Dune &lt;/span&gt; =
 ...
 &lt;p _ngcontent-c3&gt; Paul Atreides, a brilliant and gifted young man born into a great dest...&lt;/p&gt;
 &lt;/div&gt;
 &lt;/div&gt;
 &lt;/div&gt;
&lt;/div&gt;
</code></pre>
<p>where all of the code is the same except (d5NXSklXo0qyIYkgV94XAgMIckC.j), the image source (http:​/​/​image.tmdb.org/​t/​p/​w500//d5NXSklXo0qyIYkgV94XAgMIckC.jpg), movie title (Dune), and shortened movie description (Paul Atreides, a brilliant...).</p>
<p>When I try locating the image using its class=&quot;card-image&quot;, I get the error</p>
<pre><code>WebDriverException: ... {&quot;code&quot;:-32000,&quot;message&quot;:&quot;Cannot take screenshot with 0 height.&quot;}
</code></pre>
<p>After looking into it, I see that I get this error because multiple elements are tagged this way. However, I cannot find a unique locator for the title card image or any of the other elements I am looking for, as all three of the movies that show up look like they have the same code.</p>
<p>I think this should be doable with keywords from the Selenium Library but I am brand new to this and couldn't find what I needed. Here is my code, including some things that I have tried and commented out. As you can see I have no idea what I'm doing... Any help would be much appreciated.</p>
<pre><code>*** Settings ***
Documentation Searches for given movie on RPA Challenge site 
... and saves resulting data in JSON.

Library OperatingSystem
Library RPA.Browser.Selenium

Suite Teardown Close All Browsers


*** Variables ***
${RPA_Challenge_URL} https://rpachallenge.com
${img_URL} http://image.tmdb.org
${movie} Dune


*** Keywords ***
Open RPA Challenge Page
 ${use_chrome} = Get Environment Variable USE_CHROME ${EMPTY}
 IF &quot;${use_chrome}&quot; != &quot;&quot;
 Open Available Browser ${RPA_Challenge_URL} browser_selection=Chrome
 ... download=${True} # forces Chrome and matching webdriver download
 ELSE
 Open Available Browser ${RPA_Challenge_URL} # opens any available browser
 END 

Switch to Movie Search Tab
 Click Link xpath://a[text()='Movie Search']

Search for Given Movie
 Input Text name:searchStr ${movie}
 Press Keys name:searchStr ENTER
 Wait Until Page Contains Element css:div[class='card-image']

# WebDriverException: ... {&quot;code&quot;:-32000,&quot;message&quot;:&quot;Cannot take screenshot with 0 height.&quot;}
Save Movie Card Image
 # Assign ID to Element //ul[@class='card-image' and ./li[contains(., '_ngcontent-c3')]] movie_cover
 Capture Element Screenshot css:div[class='card-image']
 # Capture Element Screenshot xpath://a[contains(text(), 'image.tmdb.org'.)]
 # Capture Element Screenshot xpath://a[tag:img]
 # Capture Element Screenshot css:div[class='card-image' and contains(text(), 'image')] # invalid

# Element with locator 'css:div[class='card-title-activator']' not found.
Save Movie Title
 Capture Element Screenshot css:div[class='card-title-activator']

# Return JSON
 # print(driver.find_element_by_xpath(&quot;//div[@id='json']&quot;).text)
 # Does the above need to go in a .py file?

*** Tasks ***
Return movie information from RPA Challenge site
 TRY
 Open RPA Challenge Page
 Switch to Movie Search Tab
 Search for Given Movie
 # Save Movie Title
 Save Movie Card Image
 EXCEPT
 ${err_ss} = Set Variable ${OUTPUT_DIR}${/}error.png
 Capture Page Screenshot ${err_ss}
 Fail Checkout the screenshot: ${err_ss}
 END
</code></pre>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78298458</id>
<re:rank scheme="https://stackoverflow.com">0</re:rank>
<title type="text">How to pass cookie to get request Robot framework with API (RequestsLibrary)</title>
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<category scheme="https://stackoverflow.com/tags" term="session-cookies" />
<category scheme="https://stackoverflow.com/tags" term="web-api-testing" />
<author>
<name>marysh</name>
<uri>https://stackoverflow.com/users/13665269</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78298458/how-to-pass-cookie-to-get-request-robot-framework-with-api-requestslibrary" />
<published>2024-04-09T12:31:53Z</published>
<updated>2024-04-09T21:36:27Z</updated>
<summary type="html">
<p>I want to use the cookie, received from the session in which I do <code>POST</code> request, in the next session with <code>GET</code> request, but I have problem.</p>
<p>Here is my keyword:</p>
<pre><code>MY_Profile
 Log To Console HEADER
 Log To Console COOKIE
 Create Session mySession ${api_auth} ${cookie}
 ${response}= GET On Session mySession ${api_auth}
 Log To Console ${response.status_code}
</code></pre>
<p>This is the error I received:</p>
<blockquote>
<p>${cookie} is Unknown in this session</p>
</blockquote>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78291118</id>
<re:rank scheme="https://stackoverflow.com">-1</re:rank>
<title type="text">I want write a code that 'clicking on a button from a dropdown with robotframwork'</title>
<category scheme="https://stackoverflow.com/tags" term="automation" />
<category scheme="https://stackoverflow.com/tags" term="automated-tests" />
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<category scheme="https://stackoverflow.com/tags" term="ui-automation" />
<author>
<name>Ida beigi</name>
<uri>https://stackoverflow.com/users/24080823</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78291118/i-want-write-a-code-that-clicking-on-a-button-from-a-dropdown-with-robotframwor" />
<published>2024-04-08T08:17:29Z</published>
<updated>2024-04-08T08:17:29Z</updated>
<summary type="html">
<p>the problem is i have a dropdown and i want to click on one of the item , but i write manythings and i just get 'not found'</p>
<p>for dropdown i tried ‘Select From List By Label’‘Select From List By Value’ but not working
these are another way i try and dont get ansewr,also i try with TAB or ENTER and not working</p>
<p><a href="https://i.stack.imgur.com/eeyIc.png" rel="nofollow noreferrer">enter image description here</a>(on picture), Can anyone to help me this?
also i try with TAB or ENTER and not working</p>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78283301</id>
<re:rank scheme="https://stackoverflow.com">0</re:rank>
<title type="text">"WebDriverException: The requested resource could not be found while using AppiumLibrary in Robot Framework"</title>
<category scheme="https://stackoverflow.com/tags" term="android" />
<category scheme="https://stackoverflow.com/tags" term="windows" />
<category scheme="https://stackoverflow.com/tags" term="pycharm" />
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<category scheme="https://stackoverflow.com/tags" term="appium-android" />
<author>
<name>Sumayya Shaji</name>
<uri>https://stackoverflow.com/users/24049005</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78283301/webdriverexception-the-requested-resource-could-not-be-found-while-using-appiu" />
<published>2024-04-06T05:09:08Z</published>
<updated>2024-04-06T05:09:08Z</updated>
<summary type="html">
<p>I'm encountering an issue while using the AppiumLibrary in Robot Framework. When trying to open an application using the Open Application keyword, I'm getting a WebDriverException with the message &quot;The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource.&quot; Below is the relevant portion of the test log:[<a href="https://i.stack.imgur.com/6vhyq.png" rel="nofollow noreferrer">enter image description here</a>](<a href="https://i.stack.imgur.com/0MBBd.png" rel="nofollow noreferrer">https://i.stack.imgur.com/0MBBd.png</a>)
I'm using AppiumLibrary for Robot Framework to automate testing on Android devices. I've verified that the Appium server is running and that the desired capabilities are correctly configured in my test script.
here is my test script:
<a href="https://i.stack.imgur.com/fayjE.png" rel="nofollow noreferrer">enter image description here</a>
Could anyone provide insights into why this error might be occurring and how to resolve it? Any help would be greatly appreciated. Thank you!</p>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78280027</id>
<re:rank scheme="https://stackoverflow.com">0</re:rank>
<title type="text">How can I force robot framework to stop connecting to the internet to check for browser drivers and use one I have downloaded?</title>
<category scheme="https://stackoverflow.com/tags" term="python" />
<category scheme="https://stackoverflow.com/tags" term="selenium-chromedriver" />
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<author>
<name>user24031575</name>
<uri>https://stackoverflow.com/users/24031575</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78280027/how-can-i-force-robot-framework-to-stop-connecting-to-the-internet-to-check-for" />
<published>2024-04-05T12:53:19Z</published>
<updated>2024-04-05T12:53:19Z</updated>
<summary type="html">
<p>We are trying to use Robot Framework in a corporate environment where there are multiple firewalls etc blocking internet access for anything other than a Chrome window (even then we have to sign into a website before internet access is allowed). We're trying to test websites using Robot Framework but hitting a bump as every time we start the tests, it fails as it cannot find a chrome driver. We're limited to what we can do as we cannot change system PATH variables either. What we're trying to do is somehow include a chrome driver exe file in our robot framework test files folder somewhere which the resource file can grab and use as the chrome driver. Is this something which is possible? I have tried using OperatingSystem library to set a PATH to the chrome driver exe file but still get the same error saying Selenium Manager cannot find the chrome driver. Thanks!</p>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78278900</id>
<re:rank scheme="https://stackoverflow.com">0</re:rank>
<title type="text">Running 2 robot files parallelly in chrome using robot framework</title>
<category scheme="https://stackoverflow.com/tags" term="testing" />
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<category scheme="https://stackoverflow.com/tags" term="automation-testing" />
<category scheme="https://stackoverflow.com/tags" term="testautomationfx" />
<category scheme="https://stackoverflow.com/tags" term="robotframework-browser" />
<author>
<name>Harman</name>
<uri>https://stackoverflow.com/users/11344151</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78278900/running-2-robot-files-parallelly-in-chrome-using-robot-framework" />
<published>2024-04-05T09:20:23Z</published>
<updated>2024-04-05T09:20:23Z</updated>
<summary type="html">
<p>I have two robot files lets say a.robot and b.robot.
A.robot files takes around 30 mins to execute and b.robot takes around 1 hour to execute.
I want to run both of them parallelly, so that both of these files are executed in 1 hour.</p>
<p>So far, Whatever I have tried using is not working as Robot Framework will launch 2 or multiple chrome instances but execution is taking place in only one of them rest of the chrome instances are just set at homepage with no automation taking place there.</p>
<p>This is the error I get:
<a href="https://i.stack.imgur.com/o44P3.png" rel="nofollow noreferrer">Error while trying to run the robot files together</a></p>
<p>For execution I'm just providing the folder path where both of these files are present and both a.robot and b.robot are present in same folder.</p>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78242438</id>
<re:rank scheme="https://stackoverflow.com">1</re:rank>
<title type="text">Unresolved library: AppiumLibrary</title>
<category scheme="https://stackoverflow.com/tags" term="appium" />
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<category scheme="https://stackoverflow.com/tags" term="python-appium" />
<author>
<name>reaksmey chan</name>
<uri>https://stackoverflow.com/users/23881709</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78242438/unresolved-library-appiumlibrary" />
<published>2024-03-29T07:08:27Z</published>
<updated>2024-04-02T06:30:32Z</updated>
<summary type="html">
<p>When generating libspec, I am getting this error:</p>
<blockquote>
<p>Importing library 'AppiumLibrary' failed: ModuleNotFoundError: No module named 'appium.webdriver.common.touch_action'
Consider adding the needed paths to the &quot;robot.pythonpath&quot; setting
and calling the &quot;Robot Framework: Clear caches and restart&quot; action.robotframework</p>
</blockquote>
<p>I have tried a number of solutions with my information such as:</p>
<ul>
<li>Appium version: 2.0.1</li>
<li>Python version: 3.9.6</li>
<li>Robotframework version: 7.0</li>
<li>robotframework-appiumlibrary version: 2.0.0</li>
</ul>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78237108</id>
<re:rank scheme="https://stackoverflow.com">-1</re:rank>
<title type="text">RPA using robotframework in springboot</title>
<category scheme="https://stackoverflow.com/tags" term="java" />
<category scheme="https://stackoverflow.com/tags" term="python-3.x" />
<category scheme="https://stackoverflow.com/tags" term="spring-boot" />
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<category scheme="https://stackoverflow.com/tags" term="rpa" />
<author>
<name>Aditi Dhal</name>
<uri>https://stackoverflow.com/users/23819613</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78237108/rpa-using-robotframework-in-springboot" />
<published>2024-03-28T09:28:28Z</published>
<updated>2024-04-02T06:30:44Z</updated>
<summary type="html">
<p>I have worked on java spring-boot but I don't have much knowledge about python so I was trying to have some worked around to make robotframework code trigger from springboot application and control robotframework code from springboot . My robotframework code has to do some simple task like opening a website and doing some clicks and other thing for that it uses python SeleniumLibrary.So it would be a great help if I can get the start of how to use robotframework code from springboot and how will robotframework use selenium library if I dont have python on my system and other python library installed.Is it even possible to work with robot framework for RPA using springboot??</p>
<p>*** Settings ***
Library SeleniumLibrary run_on_failure=NOTHING
Library BuiltIn
Library Collections
Test Timeout 10 minutes</p>
<p>*** Test Cases ***
Login Test
Set Robot Variables From Properties
${chrome_options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver
Call Method ${chrome_options} add_argument --no-sandbox</p>
<h1>Call Method ${chrome_options} add_argument --headless</h1>
<pre><code>Call Method ${chrome_options} add_argument --start-maximized
Set Selenium Timeout 10sec
Open Browser https://www.google.com/
</code></pre>
<p>I have triggered the above code from python flask but I want to try it with java springboot.And how to do security testing or vulnerability testing of RPA??</p>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78234822</id>
<re:rank scheme="https://stackoverflow.com">-1</re:rank>
<title type="text">RobotFramework hangs after xx lines of log</title>
<category scheme="https://stackoverflow.com/tags" term="python" />
<category scheme="https://stackoverflow.com/tags" term="python-3.x" />
<category scheme="https://stackoverflow.com/tags" term="logging" />
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<author>
<name>LUKISO2</name>
<uri>https://stackoverflow.com/users/15999194</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78234822/robotframework-hangs-after-xx-lines-of-log" />
<published>2024-03-27T21:59:05Z</published>
<updated>2024-03-27T21:59:05Z</updated>
<summary type="html">
<p>Robot framework keeps hanging on me when I try to execute a simple python script, it stales for no reason at about 30th line of log generated and no matter how long I wait it does not progress.</p>
<p>Any suggestions? Thanks.</p>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78231133</id>
<re:rank scheme="https://stackoverflow.com">-1</re:rank>
<title type="text">how to mention tags in robotframework while writing scripts</title>
<category scheme="https://stackoverflow.com/tags" term="tags" />
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<author>
<name>Arjun</name>
<uri>https://stackoverflow.com/users/23000033</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78231133/how-to-mention-tags-in-robotframework-while-writing-scripts" />
<published>2024-03-27T10:55:11Z</published>
<updated>2024-03-27T11:14:53Z</updated>
<summary type="html">
<p>when we write test cases in the robot framework how to add test cases under the specific tag.</p>
<p>I want to know how to use tags in robot framework and how to define it ,how to add specic test cases under specic tag and to execute the particular test cases using tags.</p>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78230130</id>
<re:rank scheme="https://stackoverflow.com">0</re:rank>
<title type="text">CreateProcess Error = 5 Access Denied in Robotframework Pycharm</title>
<category scheme="https://stackoverflow.com/tags" term="python" />
<category scheme="https://stackoverflow.com/tags" term="pycharm" />
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<category scheme="https://stackoverflow.com/tags" term="automation-testing" />
<author>
<name>Maaz Ahmad</name>
<uri>https://stackoverflow.com/users/23815541</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78230130/createprocess-error-5-access-denied-in-robotframework-pycharm" />
<published>2024-03-27T08:01:26Z</published>
<updated>2024-03-27T10:17:03Z</updated>
<summary type="html">
<p>I am trying to do automation database testing with robotframework in Pycharm. On running the Test Case I am getting this error:</p>
<blockquote>
<p>Error running 'run current file' Cannot run program &quot;C:\Users\Maaz\AppData\Local\Programs\Python\Python312\Scripts&quot; (in directory &quot;C:\Users\Maaz\PycharmProjects\Test_Project&quot;): CreateProcess error=5, Access is denied</p>
</blockquote>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78225395</id>
<re:rank scheme="https://stackoverflow.com">0</re:rank>
<title type="text">Error while importing Database Library in robot framework in Pycharm</title>
<category scheme="https://stackoverflow.com/tags" term="python" />
<category scheme="https://stackoverflow.com/tags" term="pycharm" />
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<author>
<name>Maaz Ahmad</name>
<uri>https://stackoverflow.com/users/23815541</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78225395/error-while-importing-database-library-in-robot-framework-in-pycharm" />
<published>2024-03-26T12:40:00Z</published>
<updated>2024-03-27T08:52:42Z</updated>
<summary type="html">
<p>I am importing DatabaseLibrary in the Robot Framework in Pycharm but it's showing Unresolved Module. I have tried all possible reasons from my side but unable to resolve this problem.</p>
<blockquote>
<p>Unresolved library: DatabaseLibrary. Error generating libspec: Importing library 'DatabaseLibrary' failed: ModuleNotFoundError: No module named 'DatabaseLibrary' Consider adding the needed paths to the &quot;robot.pythonpath&quot; setting and calling the &quot;Robot Framework: Clear caches and restart&quot; action.</p>
</blockquote>
<p>Please help me out from this.</p>
<p>I have tried installing <code>pip install robotframework-databaseLibrary</code>
and much more that i can not explain that here in writing.</p>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78224734</id>
<re:rank scheme="https://stackoverflow.com">0</re:rank>
<title type="text">How to fail robot framework execution in listener?</title>
<category scheme="https://stackoverflow.com/tags" term="python-3.x" />
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<author>
<name>rider45</name>
<uri>https://stackoverflow.com/users/13869895</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78224734/how-to-fail-robot-framework-execution-in-listener" />
<published>2024-03-26T10:53:41Z</published>
<updated>2024-03-26T10:53:41Z</updated>
<summary type="html">
<p>I would like to know if this is possible to fail and stop robot framework execution from within a listener api version 2 (so python code)?</p>
<p>Sincerely</p>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78208470</id>
<re:rank scheme="https://stackoverflow.com">0</re:rank>
<title type="text">Run Robot in Jenkinsfile does not fetch the correct test.robot file from Github</title>
<category scheme="https://stackoverflow.com/tags" term="jenkins" />
<category scheme="https://stackoverflow.com/tags" term="testing" />
<category scheme="https://stackoverflow.com/tags" term="version-control" />
<category scheme="https://stackoverflow.com/tags" term="automated-tests" />
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<author>
<name>Pär Ershag</name>
<uri>https://stackoverflow.com/users/23742695</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78208470/run-robot-in-jenkinsfile-does-not-fetch-the-correct-test-robot-file-from-github" />
<published>2024-03-22T19:28:42Z</published>
<updated>2024-03-22T22:52:36Z</updated>
<summary type="html">
<p>So I have a school project that have given me so many headaches in every step of the way. It is located on Github and is run through Jenkins as a pipeline project, parameterized with git parameters for branches. There are 2 branches, main and b1 and this is my Jenkinsfile</p>
<pre><code>pipeline {
 agent any
 stages { 
 stage('build'){
 steps{
 sh &quot;mvn compile&quot;
 }
 }
 stage('Test') {
 steps{
 sh &quot;mvn test&quot;
 }
 post {
 always {
 jacoco(
 execPattern: 'target/*.exec',
 classPattern: 'target/classes',
 sourcePattern: 'src/main/java',
 exclusionPattern: 'src/test*'
 )
 junit '**/TEST*.xml'
 }
 }
 }
 stage('Run Robot and Post Test') {
 steps{
 sh script: 'python -m robot C:/Users/ersha/.jenkins/workspace/Pär_Ershag/Selenium/test.robot', returnStatus: true
 }
 post {
 always {
 robot outputPath: 'C:/Users/ersha/.jenkins/workspace/Pär_Ershag@2', passThreshold: 100.0, unstableThreshold: 70.0, onlyCritical: false
 }
 }
 }
 }
}
</code></pre>
<p>My issue is that regardless of what branch I choose to build it will always use an old version of test.robot located at the same path as the step sh script: 'python -m robot...' is refering to. Main and b1 have both different versions of the file but neither are run. This despite having a &quot;clean before cheackout&quot; step in additional behaviours.</p>
<p>I have compared my Jenkinsfile to others doing the same project and the biggest difference is that the stage for 'Run Robot and Post Test' is stated as:
bat &quot; robot <em>their test.robot path</em>&quot;</p>
<p>I can't use bat for my steps for some reason even though I use windows hence why I had to use sh and a script in Jenkins to make it work.</p>
<p>ps: I'm kinda new to Jenkins so there are many things that I don't understand yet.</p>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78207470</id>
<re:rank scheme="https://stackoverflow.com">0</re:rank>
<title type="text">Import Variables in Suite Setup does not import variables for all the test suite</title>
<category scheme="https://stackoverflow.com/tags" term="python" />
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<author>
<name>Romain Bosq</name>
<uri>https://stackoverflow.com/users/6051534</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78207470/import-variables-in-suite-setup-does-not-import-variables-for-all-the-test-suite" />
<published>2024-03-22T16:04:09Z</published>
<updated>2024-03-22T16:04:09Z</updated>
<summary type="html">
<p>I am kinda new with Robot.
similarly to this <a href="https://stackoverflow.com/questions/47490802/how-to-make-variables-from-import-variables-globally-available">How to make variables from &#39;Import Variables&#39; globally available?</a></p>
<p>I am trying to import dynamically variables defined in a python file depending if the tester specified --variable device:A or device:B</p>
<p>Both devices have the same variables but values are different.</p>
<p>My repo looks like this:</p>
<pre><code>folder
 |_ __init__.robot
 |_ test.robot
</code></pre>
<p>I have something like that in the __init__.robot:</p>
<pre><code>In __init__.robot:

Suite Setup Initialize Device

*** Keywords *** 
Initialize Device
 [Documentation] Initializes the device based on a constant value
 [Arguments] ${device_type}
 IF '${device_type}' == 'A'
 Import Variables projects/A/variables_A.py
 ELSE IF '${device_type}' == 'B'
 Import Variables projects/B/variables_B.py
END
</code></pre>
<p>And in test.robot:</p>
<pre><code>*** Test Cases ***
Print device ID
 Log ${device_id}
</code></pre>
<p>The variable device_id is defined in both variables_X.py files</p>
<p>It works fine for the Setup Suite function, variables are loaded as I expected but as soon as my first test starts, the variables imported are unknown, like out of scope. I thought importing them from the Suite Setup would import them for the whole Test suite as described by robot manual:</p>
<blockquote>
<p>Variables imported with this keyword are set into the test suite scope
similarly when importing them in the Setting table using the Variables
setting.</p>
</blockquote>
<p>My solution would be to iterate this file and use Set Global Variable/Set Suite Variable but I am curious to know why it does not work as I expected, any ideas?</p>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78206052</id>
<re:rank scheme="https://stackoverflow.com">0</re:rank>
<title type="text">"Importing test library 'SSHLibrary' failed: ModuleNotFoundError: No module named 'SSHLibrary'</title>
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<category scheme="https://stackoverflow.com/tags" term="robotframework-sshlibrary" />
<author>
<name>Pop I like</name>
<uri>https://stackoverflow.com/users/13374367</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78206052/importing-test-library-sshlibrary-failed-modulenotfounderror-no-module-name" />
<published>2024-03-22T11:54:28Z</published>
<updated>2024-03-22T11:54:28Z</updated>
<summary type="html">
<pre><code>&quot;message&quot;: &quot;Importing test library 'SSHLibrary' failed: ModuleNotFoundError: No module named 'SSHLibrary'\nTraceback (most recent call last):\n None\nPYTHONPATH:\
</code></pre>
<p>python version: 3.12
robot framwork : 6.0
sshlibrarry :3.8.0
visual studio 2019</p>
<p>still I see the import error .</p>
<p>please help in resolve.</p>
<p>what exact version i need to have here ?
i switched to python 2.7. still it does not help
anyone facing similar issues?</p>

</summary>
</entry>
<entry>
<id>https://stackoverflow.com/q/78205265</id>
<re:rank scheme="https://stackoverflow.com">0</re:rank>
<title type="text">How do I scroll down the child popup scrollbar using the robot framework?</title>
<category scheme="https://stackoverflow.com/tags" term="selenium-webdriver" />
<category scheme="https://stackoverflow.com/tags" term="automation" />
<category scheme="https://stackoverflow.com/tags" term="robotframework" />
<category scheme="https://stackoverflow.com/tags" term="automation-testing" />
<author>
<name>Ash</name>
<uri>https://stackoverflow.com/users/18963282</uri>
</author>
<link rel="alternate" href="https://stackoverflow.com/questions/78205265/how-do-i-scroll-down-the-child-popup-scrollbar-using-the-robot-framework" />
<published>2024-03-22T09:39:37Z</published>
<updated>2024-03-22T09:46:40Z</updated>
<summary type="html">
<p>I have to scroll down the child popup scroll bar up to the bottom of the popup using the robot framework. Can you please help with it? Thanks in advance.</p>
<p>I have the below code as an example, but it is not working.</p>
<pre><code>Get Product Price
 ${Value1}= Get WebElement ${SubTotal}
 Wait Until Element Is Visible ${Value1} timeout=60s
 Execute JavaScript window.document.getElementById('${Value1}').scrollIntoView();
 ${Price}= Get Text ${SubTotal}
 Log Price is:- ${Price}
 Log To Console \nPrice is:- ${Price}
</code></pre>
<p>${SubTotal} element is under the child window, and it has the bottom of the child window popup, so I have to scroll down to the ${SubTotal}</p>

</summary>
</entry>
</feed>
If you would like to create a banner that links to this page (i.e. this validation result), do the following:
Download the "valid Atom 1.0" banner.
Upload the image to your own server. (This step is important. Please do not link directly to the image on this server.)
Add this HTML to your page (change the image src
attribute if necessary):
If you would like to create a text link instead, here is the URL you can use: