Congratulations!

[Valid Atom 1.0] This is a valid Atom 1.0 feed.

Recommendations

This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.

Source: http://stackoverflow.com/feeds/tag?tagnames=robotframework&sort=newest

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <feed xmlns="http://www.w3.org/2005/Atom" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:re="http://purl.org/atompub/rank/1.0">
  3.    <title type="text">Newest questions tagged robotframework - Stack Overflow</title>
  4.    <link rel="self" href="https://stackoverflow.com/feeds/tag?tagnames=robotframework&amp;sort=newest" type="application/atom+xml" />
  5.    <link rel="alternate" href="https://stackoverflow.com/questions/tagged/?tagnames=robotframework&amp;sort=newest" type="text/html" />
  6.    <subtitle>most recent 30 from stackoverflow.com</subtitle>
  7.    <updated>2024-04-27T01:02:39Z</updated>
  8.    <id>https://stackoverflow.com/feeds/tag?tagnames=robotframework&amp;sort=newest</id>
  9.    <creativeCommons:license>https://creativecommons.org/licenses/by-sa/4.0/rdf</creativeCommons:license>
  10.    <entry>
  11.        <id>https://stackoverflow.com/q/78388504</id>
  12.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  13.        <title type="text">How to use Input Text with Tab Character (\t) using Robocorp (Robot Framework)?</title>
  14.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  15.        <author>
  16.            <name>tzehuai</name>
  17.            <uri>https://stackoverflow.com/users/11269608</uri>
  18.        </author>
  19.        <link rel="alternate" href="https://stackoverflow.com/questions/78388504/how-to-use-input-text-with-tab-character-t-using-robocorp-robot-framework" />
  20.        <published>2024-04-26T06:01:14Z</published>
  21.        <updated>2024-04-26T07:07:12Z</updated>
  22.        <summary type="html">
  23.            &lt;p&gt;I&#x27;m having trouble with Input text with a tab character in a text box.&lt;/p&gt;&#xA;&lt;p&gt;The following works perfectly fine with the newline character (\n), but I can&#x27;t seem to find a tab character (\t)&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Input Text    stPasteData-inputEl    abc${\n}abc&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Anyone has any idea?&lt;/p&gt;&#xA;&lt;p&gt;Thanks!&lt;/p&gt;&#xA;
  24.        </summary>
  25.    </entry>
  26.    <entry>
  27.        <id>https://stackoverflow.com/q/78385657</id>
  28.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  29.        <title type="text">starttime and endtime are not existing in robot framework output.xml file</title>
  30.            <category scheme="https://stackoverflow.com/tags" term="python" />
  31.            <category scheme="https://stackoverflow.com/tags" term="xml" />
  32.            <category scheme="https://stackoverflow.com/tags" term="automated-tests" />
  33.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  34.        <author>
  35.            <name>Pasin Chantharathan</name>
  36.            <uri>https://stackoverflow.com/users/19786936</uri>
  37.        </author>
  38.        <link rel="alternate" href="https://stackoverflow.com/questions/78385657/starttime-and-endtime-are-not-existing-in-robot-framework-output-xml-file" />
  39.        <published>2024-04-25T15:24:51Z</published>
  40.        <updated>2024-04-26T10:22:54Z</updated>
  41.        <summary type="html">
  42.            &lt;p&gt;I tried to parse test result of Robot Framework to &lt;code&gt;postgres&lt;/code&gt; by using TestArchiver (&lt;a href=&quot;https://github.com/salabs/TestArchiver&quot; rel=&quot;nofollow noreferrer&quot;&gt;TestArchiver&lt;/a&gt;) but the below error occurred:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Parsing: &#x27;output.xml&#x27;&#xA;Traceback (most recent call last):&#xA;  File &amp;quot;/Library/Frameworks/Python.framework/Versions/3.12/bin/testarchiver&amp;quot;, line 8, in &amp;lt;module&amp;gt;&#xA;    sys.exit(main())&#xA;             ^^^^^^&#xA;  File &amp;quot;/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/test_archiver/output_parser.py&amp;quot;, line 861, in main&#xA;    build_number_cache = parse_xml(output_file, args.format, connection, config, build_number_cache)&#xA;                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&#xA;  File &amp;quot;/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/test_archiver/output_parser.py&amp;quot;, line 795, in parse_xml&#xA;    parser.feed(buffer)&#xA;  File &amp;quot;/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/xml/sax/expatreader.py&amp;quot;, line 211, in feed&#xA;    self._parser.Parse(data, isFinal)&#xA;  File &amp;quot;/Users/sysadmin/build/v3.12.0/Modules/pyexpat.c&amp;quot;, line 416, in StartElement&#xA;  File &amp;quot;/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/xml/sax/expatreader.py&amp;quot;, line 327, in start_element&#xA;    self._cont_handler.startElement(name, AttributesImpl(attrs))&#xA;  File &amp;quot;/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/test_archiver/output_parser.py&amp;quot;, line 91, in startElement&#xA;    self.archiver.begin_status(attrs.getValue(&#x27;status&#x27;), attrs.getValue(&#x27;starttime&#x27;),&#xA;                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^&#xA;  File &amp;quot;/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/xml/sax/xmlreader.py&amp;quot;, line 291, in getValue&#xA;    return self._attrs[name]&#xA;           ~~~~~~~~~~~^^^^^^&#xA;KeyError: &#x27;starttime&#x27;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I used command:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;testarchiver --format robot --allow-major-schema-updates --dbengine postgresql --user postgres --pw ******* --database robot_test output.xml&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And I tried looking in &lt;code&gt;output.xml&lt;/code&gt; but there is no keyword starttime and endtime too.&lt;/p&gt;&#xA;
  43.        </summary>
  44.    </entry>
  45.    <entry>
  46.        <id>https://stackoverflow.com/q/78383202</id>
  47.        <re:rank scheme="https://stackoverflow.com">-1</re:rank>
  48.        <title type="text">run robot framework test cases from git using jenkins</title>
  49.            <category scheme="https://stackoverflow.com/tags" term="github" />
  50.            <category scheme="https://stackoverflow.com/tags" term="jenkins" />
  51.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  52.        <author>
  53.            <name>Rushikesh Jethure</name>
  54.            <uri>https://stackoverflow.com/users/23123030</uri>
  55.        </author>
  56.        <link rel="alternate" href="https://stackoverflow.com/questions/78383202/run-robot-framework-test-cases-from-git-using-jenkins" />
  57.        <published>2024-04-25T08:16:33Z</published>
  58.        <updated>2024-04-25T08:16:33Z</updated>
  59.        <summary type="html">
  60.            &lt;p&gt;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 &lt;strong&gt;&#x27;robot&#x27; is not recongizable&lt;/strong&gt;. Please, can anyone help me? I have also installed robot framework plugins,but I am getting the same error.&lt;/p&gt;&#xA;&lt;p&gt;(&lt;a href=&quot;https://i.stack.imgur.com/mPfrX.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://i.stack.imgur.com/mPfrX.png&lt;/a&gt;)&lt;/p&gt;&#xA;
  61.        </summary>
  62.    </entry>
  63.    <entry>
  64.        <id>https://stackoverflow.com/q/78380413</id>
  65.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  66.        <title type="text">Using modheader to Modify Headers in Selenium with Robot Framework</title>
  67.            <category scheme="https://stackoverflow.com/tags" term="javascript" />
  68.            <category scheme="https://stackoverflow.com/tags" term="python" />
  69.            <category scheme="https://stackoverflow.com/tags" term="selenium-webdriver" />
  70.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  71.        <author>
  72.            <name>Tibor Sz&#xE1;raz</name>
  73.            <uri>https://stackoverflow.com/users/5325776</uri>
  74.        </author>
  75.        <link rel="alternate" href="https://stackoverflow.com/questions/78380413/using-modheader-to-modify-headers-in-selenium-with-robot-framework" />
  76.        <published>2024-04-24T18:02:07Z</published>
  77.        <updated>2024-04-24T18:02:07Z</updated>
  78.        <summary type="html">
  79.            &lt;p&gt;I&#x27;m trying to use the modheader extension to modify headers in Chrome through Selenium in Robot Framework. I&#x27;ve created a custom library in Python to handle this, but I&#x27;m facing an issue with accessing the localStorage when I try to modify headers.&lt;/p&gt;&#xA;&lt;p&gt;Here&#x27;s the Python code I wrote for the custom library:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;from SeleniumLibrary.base import keyword&#xA;from robot.libraries.BuiltIn import BuiltIn&#xA;import sys&#xA;&#xA;class ChromeDriverLib:&#xA;    def __init__(self):&#xA;        pass&#xA;    &#xA;    @property&#xA;    def get_lib(self):&#xA;        return BuiltIn().get_library_instance(&#x27;SeleniumLibrary&#x27;)&#xA;&#xA;    @keyword(name=&#x27;Open Browser With Headers&#x27;)&#xA;    def open_the_browser_with_headers(self, url=&amp;quot;DEFAULT_URL&amp;quot;, browser=&amp;quot;chrome&amp;quot;, remote_url=False, header=&amp;quot;DEFAULT_HEADER&amp;quot;, value=&amp;quot;DEFAULT_VALUE&amp;quot;, header2=&amp;quot;DEFAULT_HEADER&amp;quot;, value2=&amp;quot;DEFAULT_VALUE&amp;quot;, header3=&amp;quot;DEFAULT_HEADER&amp;quot;, value3=&amp;quot;DEFAULT_VALUE&amp;quot;, download_dir=&amp;quot;DEFAULT_DIR&amp;quot;):&#xA;        browser_options = sys.modules[&#x27;selenium.webdriver&#x27;].ChromeOptions()&#xA;        browser_options.add_extension(&#x27;./modheader.crx&#x27;)&#xA;        browser_options.add_argument(&#x27;--ignore-certificate-errors&#x27;)&#xA;        browser_options.add_argument(&amp;quot;--kiosk&amp;quot;)&#xA;        browser_options.add_argument(&amp;quot;enable-features=NetworkServiceInProcess&amp;quot;)&#xA;        browser_options.add_argument(&amp;quot;--disable-dev-shm-usage&amp;quot;)&#xA;        browser_options.add_experimental_option(&amp;quot;prefs&amp;quot;, {&#xA;            &amp;quot;download.default_directory&amp;quot;: download_dir,&#xA;            &amp;quot;download.prompt_for_download&amp;quot;: False,&#xA;            &amp;quot;download.directory_upgrade&amp;quot;: True,&#xA;            &amp;quot;safebrowsing.enabled&amp;quot;: True&#xA;        })&#xA;        browser_options = browser_options.to_capabilities()&#xA;        self.get_lib.open_browser(&amp;quot;chrome-extension://idgpnmonknjnojddfkpgkljpfnnfcklj/icon.png&amp;quot;, browser, None, remote_url, browser_options, None)&#xA;        self.get_lib.driver.set_window_size(1920, 1080)&#xA;        self.get_lib.driver.execute_script(&#xA;            &amp;quot;localStorage.setItem(&#x27;profiles&#x27;, JSON.stringify([{title: &#x27;Selenium&#x27;, hideComment: true, appendMode: &#x27;&#x27;, headers: [{enabled: true, name: &#x27;&amp;quot; &#x2B; header &#x2B; &amp;quot;&#x27;, value: &#x27;&amp;quot; &#x2B; value &#x2B; &amp;quot;&#x27;, comment: &#x27;&#x27;}, {enabled: true, name: &#x27;&amp;quot; &#x2B; header2 &#x2B; &amp;quot;&#x27;, value: &#x27;&amp;quot; &#x2B; value2 &#x2B; &amp;quot;&#x27;, comment: &#x27;&#x27;}, {enabled: true, name: &#x27;&amp;quot; &#x2B; header3 &#x2B; &amp;quot;&#x27;, value: &#x27;&amp;quot; &#x2B; value3 &#x2B; &amp;quot;&#x27;, comment: &#x27;&#x27;}], respHeaders: [], filters: []}]))&amp;quot;&#xA;        )&#xA;        return self.get_lib.go_to(url)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I&#x27;m calling this library in my Robot Framework test case as follows:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Library    mypython.py&#xA;Open Browser With Headers    url=${url}    browser=chrome    header=myheader    value=myvalue    header2=myheader2    value2=myvalue2    header3=myheader3    value3=myvalue3    download_dir=mydownloadir&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;When executing the test, I get a JavascriptException with the message:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Message: javascript error: {&amp;quot;status&amp;quot;:18,&amp;quot;value&amp;quot;:&amp;quot;Failed to read the &#x27;localStorage&#x27; property from &#x27;Window&#x27;: Access is denied for this document.&amp;quot;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Can anyone help resolve this error or suggest a workaround for modifying headers using modheader in this setup?&lt;/p&gt;&#xA;
  80.        </summary>
  81.    </entry>
  82.    <entry>
  83.        <id>https://stackoverflow.com/q/78378932</id>
  84.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  85.        <title type="text">How to call a function / Robotframework Keyword when appium detects a particular page</title>
  86.            <category scheme="https://stackoverflow.com/tags" term="automated-tests" />
  87.            <category scheme="https://stackoverflow.com/tags" term="appium" />
  88.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  89.            <category scheme="https://stackoverflow.com/tags" term="keyword" />
  90.        <author>
  91.            <name>Shetty</name>
  92.            <uri>https://stackoverflow.com/users/24501044</uri>
  93.        </author>
  94.        <link rel="alternate" href="https://stackoverflow.com/questions/78378932/how-to-call-a-function-robotframework-keyword-when-appium-detects-a-particular" />
  95.        <published>2024-04-24T13:45:11Z</published>
  96.        <updated>2024-04-25T14:42:42Z</updated>
  97.        <summary type="html">
  98.            &lt;p&gt;I am currently running android mobile applications tests with appium, Robotframework and Python.&#xA;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.&lt;/p&gt;&#xA;&lt;p&gt;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.&lt;/p&gt;&#xA;&lt;p&gt;I was wondering if there is any other approach such that if appium itself detects that page, the keyword is called in?&lt;/p&gt;&#xA;&lt;p&gt;Please let me know. Thank you!&lt;/p&gt;&#xA;
  99.        </summary>
  100.    </entry>
  101.    <entry>
  102.        <id>https://stackoverflow.com/q/78372807</id>
  103.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  104.        <title type="text">Robot framework always fails a test case</title>
  105.            <category scheme="https://stackoverflow.com/tags" term="python" />
  106.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  107.        <author>
  108.            <name>Veeresh Ambe</name>
  109.            <uri>https://stackoverflow.com/users/24608020</uri>
  110.        </author>
  111.        <link rel="alternate" href="https://stackoverflow.com/questions/78372807/robot-framework-always-fails-a-test-case" />
  112.        <published>2024-04-23T13:37:01Z</published>
  113.        <updated>2024-04-23T13:37:01Z</updated>
  114.        <summary type="html">
  115.            &lt;p&gt;I have created the following robot file and the pass string file&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;*** Settings ***&#xA;Documentation   Test cases&#xA;Library         test.py&#xA;Variables       EcuSanityTest_PassString.py&#xA;*** Test Cases ***&#xA;ECU_SANITY_TEST_1&#xA;          parse_logs    ${ECU_SANITY_TEST_LOG_FILE}      ${ECU_SANITY_TEST_1_PASS}&#xA;&#xA;ECU_SANITY_TEST_2&#xA;          parse_logs    ${ECU_SANITY_TEST_LOG_FILE}      ${ECU_SANITY_TEST_2_PASS}&#xA;&#xA;ECU_SANITY_TEST_3&#xA;          parse_logs    ${ECU_SANITY_TEST_LOG_FILE}      ${ECU_SANITY_TEST_3_PASS}&#xA;&#xA;ECU_SANITY_TEST_4&#xA;          parse_logs    ${ECU_SANITY_TEST_LOG_FILE}      ${ECU_SANITY_TEST_4_PASS}&#xA;&#xA;ECU_SANITY_TEST_5&#xA;          parse_logs    ${ECU_SANITY_TEST_LOG_FILE}      ${ECU_SANITY_TEST_5_PASS}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;EcuSanityTest_PassString.py&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;ECU_SANITY_TEST_1_PASS=&#x27;&#x27;&#x27;&#xA;ECU_SANITY_TEST_1:PASS&#xA;&#x27;&#x27;&#x27;&#xA;ECU_SANITY_TEST_2_PASS=&#x27;&#x27;&#x27;&#xA;ECU_SANITY_TEST_2:PASS&#xA;&#x27;&#x27;&#x27;&#xA;ECU_SANITY_TEST_3_PASS=&#x27;&#x27;&#x27;&#xA;ECU_SANITY_TEST_3:PASS&#xA;&#x27;&#x27;&#x27;&#xA;ECU_SANITY_TEST_4_PASS=&#x27;&#x27;&#x27;&#xA;ECU_SANITY_TEST_4:PASS&#xA;&#x27;&#x27;&#x27;&#xA;ECU_SANITY_TEST_5_PASS=&#x27;&#x27;&#x27;&#xA;ECU_SANITY_TEST_5:PASS&#xA;&#x27;&#x27;&#x27;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is the test.py file&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;import os&#xA;import sys&#xA;&#xA;def parse_logs(logFile, passText):&#xA;    passStringFound = False&#xA;    with open(logFile, &amp;quot;r&amp;quot;) as fp_log:&#xA;        lines = fp_log.readlines()&#xA;        for line in lines:&#xA;            split_lines = line.split()&#xA;            if passText in split_lines:&#xA;                passStringFound = True&#xA;                break&#xA;&#xA;    if passStringFound == False:&#xA;        raise AssertionError(&#x27;Test Failed&#x27;)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;the test log file contains the expected pass text. However the robot framework reports all the test cases as failed&#xA;log.txt&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;ECU_SANITY_TEST_1:PASS&#xA;ECU_SANITY_TEST_3:PASS&#xA;ECU_SANITY_TEST_5:PASS&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;robot output&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;==============================================================================&#xA;EcuSanityTest :: Test cases&#xA;==============================================================================&#xA;ECU_SANITY_TEST_1                                                     | FAIL |&#xA;Test Failed&#xA;------------------------------------------------------------------------------&#xA;ECU_SANITY_TEST_2                                                     | FAIL |&#xA;Test Failed&#xA;------------------------------------------------------------------------------&#xA;ECU_SANITY_TEST_3                                                     | FAIL |&#xA;Test Failed&#xA;------------------------------------------------------------------------------&#xA;ECU_SANITY_TEST_4                                                     | FAIL |&#xA;Test Failed&#xA;------------------------------------------------------------------------------&#xA;ECU_SANITY_TEST_5                                                     | FAIL |&#xA;Test Failed&#xA;------------------------------------------------------------------------------&#xA;EcuSanityTest :: Test cases                                           | FAIL |&#xA;5 tests, 0 passed, 5 failed&#xA;==============================================================================&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Can anyone please help me understand why the robot framework always reports the test as failed?&lt;/p&gt;&#xA;&lt;p&gt;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&lt;/p&gt;&#xA;
  116.        </summary>
  117.    </entry>
  118.    <entry>
  119.        <id>https://stackoverflow.com/q/78369233</id>
  120.        <re:rank scheme="https://stackoverflow.com">-2</re:rank>
  121.        <title type="text">Noob here: How do I install the Robot Framework recorder Robocorp Chrome Extension on a Mac (or for Safari)? [closed]</title>
  122.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  123.            <category scheme="https://stackoverflow.com/tags" term="robotframework-ide" />
  124.        <author>
  125.            <name>user16696911</name>
  126.            <uri>https://stackoverflow.com/users/16696911</uri>
  127.        </author>
  128.        <link rel="alternate" href="https://stackoverflow.com/questions/78369233/noob-here-how-do-i-install-the-robot-framework-recorder-robocorp-chrome-extensi" />
  129.        <published>2024-04-22T23:11:37Z</published>
  130.        <updated>2024-04-22T23:11:37Z</updated>
  131.        <summary type="html">
  132.            &lt;p&gt;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.&lt;/p&gt;&#xA;&lt;p&gt;TY&#xA;M&lt;/p&gt;&#xA;&lt;p&gt;Have a .tar file download - not sure how to proceed to further steps. Please help!&lt;/p&gt;&#xA;
  133.        </summary>
  134.    </entry>
  135.    <entry>
  136.        <id>https://stackoverflow.com/q/78354496</id>
  137.        <re:rank scheme="https://stackoverflow.com">1</re:rank>
  138.        <title type="text">How can I execute strings as robot framework code (Robot version 3.1.1)?</title>
  139.            <category scheme="https://stackoverflow.com/tags" term="python" />
  140.            <category scheme="https://stackoverflow.com/tags" term="automation" />
  141.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  142.        <author>
  143.            <name>user24501621</name>
  144.            <uri>https://stackoverflow.com/users/24501621</uri>
  145.        </author>
  146.        <link rel="alternate" href="https://stackoverflow.com/questions/78354496/how-can-i-execute-strings-as-robot-framework-code-robot-version-3-1-1" />
  147.        <published>2024-04-19T14:41:48Z</published>
  148.        <updated>2024-04-19T14:48:33Z</updated>
  149.        <summary type="html">
  150.            &lt;p&gt;I&#x27;m using robot version 3.1.1 for test automation.&lt;/p&gt;&#xA;&lt;p&gt;I have a JSON file that stores robot login commands based on the host name.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;{&#xA;   &amp;quot;host1&amp;quot; : [&amp;quot;Open Connection  host1&amp;quot;, &amp;quot;Login  host1&amp;quot;, ....]&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I&#x27;m able to parse the JSON file, but how can I execute the strings as robot code?&lt;/p&gt;&#xA;&lt;p&gt;This is what I tried:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt; ${source_data} =  OperatingSystem.Get File  ${CURDIR}/auth.json&#xA; ${data} =  Evaluate  json.loads($source_data)  json&#xA;&#xA; : FOR ${command}  IN  @{data[&amp;quot;host1&amp;quot;]}&#xA;     \  Evaluate  robot.run(${command})&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I end up getting an error like this:&#xA;&lt;em&gt;Evaluating expression &#x27;robot.run(Open Connection  host1)&#x27; failed: SytntaxError: invalid syntax(, line 1)&lt;/em&gt;&lt;/p&gt;&#xA;
  151.        </summary>
  152.    </entry>
  153.    <entry>
  154.        <id>https://stackoverflow.com/q/78354463</id>
  155.        <re:rank scheme="https://stackoverflow.com">-1</re:rank>
  156.        <title type="text">Appium Swipe keyword does not work in Tests</title>
  157.            <category scheme="https://stackoverflow.com/tags" term="python" />
  158.            <category scheme="https://stackoverflow.com/tags" term="android" />
  159.            <category scheme="https://stackoverflow.com/tags" term="appium" />
  160.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  161.            <category scheme="https://stackoverflow.com/tags" term="swipe" />
  162.        <author>
  163.            <name>Shetty</name>
  164.            <uri>https://stackoverflow.com/users/24501044</uri>
  165.        </author>
  166.        <link rel="alternate" href="https://stackoverflow.com/questions/78354463/appium-swipe-keyword-does-not-work-in-tests" />
  167.        <published>2024-04-19T14:36:54Z</published>
  168.        <updated>2024-04-22T07:57:52Z</updated>
  169.        <summary type="html">
  170.            &lt;p&gt;I recently switched devices from windows to mac. I am currently running my tests using robotframework, Appium, Python.&lt;/p&gt;&#xA;&lt;p&gt;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.&lt;/p&gt;&#xA;&lt;p&gt;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:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Package                           Version&#xA;Appium-Python-Client              2.11.1&#xA;robotframework                    6.1.1&#xA;robotframework-appiumlibrary      2.0.0&#xA;robotframework-archivelibrary     0.4.2&#xA;robotframework-assertion-engine   3.0.3&#xA;robotframework-browser            18.3.0&#xA;robotframework-oracledb           2.0.2&#xA;robotframework-pabot              2.18.0&#xA;robotframework-pythonlibcore      4.4.1&#xA;robotframework-requests           0.9.7&#xA;robotframework-seleniumlibrary    6.2.0&#xA;robotframework-stacktrace         0.4.1&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Here is the sample code:&#xA;`&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;gt; ${Sign} =   Wait Until Element is Visible. id=ch.post.it.nemo.app.zust.android.next:id/saveImageButton_portrait&#xA;&amp;gt; IF    ${Sign}&#xA;&amp;gt;         bi.Wait Until Keyword Succeeds       10 sec   0.5 sec   Swipe By Percent    90    90    80    30                           &#xA;  ELSE&#xA;&amp;gt;        bi.Log To Console    ||--Page is not displayed--||    console=yes END`&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Any Appium swipe keyword including Swipe, Swipe By Percent - does not work for me.&lt;/p&gt;&#xA;&lt;p&gt;Could you please help resolve this issue?&lt;/p&gt;&#xA;&lt;p&gt;Thank you in advance :)&lt;/p&gt;&#xA;&lt;p&gt;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.&lt;/p&gt;&#xA;
  171.        </summary>
  172.    </entry>
  173.    <entry>
  174.        <id>https://stackoverflow.com/q/78333730</id>
  175.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  176.        <title type="text">Right format of the element path</title>
  177.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  178.        <author>
  179.            <name>akoel</name>
  180.            <uri>https://stackoverflow.com/users/1333565</uri>
  181.        </author>
  182.        <link rel="alternate" href="https://stackoverflow.com/questions/78333730/right-format-of-the-element-path" />
  183.        <published>2024-04-16T10:07:35Z</published>
  184.        <updated>2024-04-17T06:21:20Z</updated>
  185.        <summary type="html">
  186.            &lt;p&gt;I&#x27;d like to know what is the right (official) way to use element path in Robot Framework.&#xA;According to the doc:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/Mr4fA.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;&lt;img src=&quot;https://i.stack.imgur.com/Mr4fA.png&quot; alt=&quot;enter image description here&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Let&#x27;s say I want to use xpath. If I understand the right way to use it in a KW for example:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Wait Until Page Contains Element    locator=xpath://*[@id=&amp;quot;post-message-container&amp;quot;]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;But in many cases, googling it, I found this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Wait Until Page Contains Element    xpath=//*[@id=&amp;quot;post-message-container&amp;quot;]&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Surprisingly both work, but I don&#x27;t think the second one should.&#xA;Could you help me to solve this confusion?&lt;/p&gt;&#xA;
  187.        </summary>
  188.    </entry>
  189.    <entry>
  190.        <id>https://stackoverflow.com/q/78329138</id>
  191.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  192.        <title type="text">Running a Python script in Robot Framework and waiting for it to complete</title>
  193.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  194.        <author>
  195.            <name>Mauro 101</name>
  196.            <uri>https://stackoverflow.com/users/24359468</uri>
  197.        </author>
  198.        <link rel="alternate" href="https://stackoverflow.com/questions/78329138/running-a-python-script-in-robot-framework-and-waiting-for-it-to-complete" />
  199.        <published>2024-04-15T14:33:18Z</published>
  200.        <updated>2024-04-16T07:29:07Z</updated>
  201.        <summary type="html">
  202.            &lt;p&gt;In my Robot Framework test, I am running a Python script that creates test data.&#xA;To start the script there are 2 options:&#xA;in PowerShell I can type:&#xA;&lt;code&gt;python testdatascript.py ABC TEST&lt;/code&gt;&#xA;or&#xA;&lt;code&gt;python testdatascript.py&lt;/code&gt; -&amp;gt; the script runs and ask for input -&amp;gt; &lt;code&gt;ABC&lt;/code&gt; -&amp;gt; next input &lt;code&gt;TEST&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Where &amp;quot;ABC&amp;quot; = sourceDB, and &amp;quot;TEST&amp;quot; = environment&lt;/p&gt;&#xA;&lt;p&gt;I think current code I have is not &#x27;waiting&#x27; 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)&lt;/p&gt;&#xA;&lt;p&gt;The Python script is working fine and works flawless when using manually.&lt;/p&gt;&#xA;&lt;p&gt;Currently I have this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;${RESULT}= Run Process   Python   c:/path/testdatascript.py   ABC TEST   shell=yes   stdout=stdout.txt &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;it currently gives back &lt;code&gt;&amp;lt;result object with rc 0&amp;gt;&lt;/code&gt; (which is 0 errors if I am correct) But does not create the testdata.&lt;/p&gt;&#xA;&lt;p&gt;If the script runs successfully, it will print: &lt;code&gt;successfully created the testdata&lt;/code&gt; If it fails it will print  an error code.&#xA;I started looking into &lt;code&gt;Start Process&lt;/code&gt; , but I&#x27;m not experienced enough in Robot framework to know how that would work.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Perfect solution&lt;/strong&gt; would be if the Run/Start Process kicks of the .py script and checks if the Successfull line is shown before continuing the test.&lt;/p&gt;&#xA;
  203.        </summary>
  204.    </entry>
  205.    <entry>
  206.        <id>https://stackoverflow.com/q/78328798</id>
  207.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  208.        <title type="text">Robot Framework Database Library calling Oracle store procedure fails with character to number conversion error</title>
  209.            <category scheme="https://stackoverflow.com/tags" term="python" />
  210.            <category scheme="https://stackoverflow.com/tags" term="oracle" />
  211.            <category scheme="https://stackoverflow.com/tags" term="plsql" />
  212.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  213.        <author>
  214.            <name>BernardV</name>
  215.            <uri>https://stackoverflow.com/users/3324415</uri>
  216.        </author>
  217.        <link rel="alternate" href="https://stackoverflow.com/questions/78328798/robot-framework-database-library-calling-oracle-store-procedure-fails-with-chara" />
  218.        <published>2024-04-15T13:36:10Z</published>
  219.        <updated>2024-04-17T11:14:05Z</updated>
  220.        <summary type="html">
  221.            &lt;p&gt;I have an &lt;code&gt;Oracle PL/SQL&lt;/code&gt; procedure that I can directly call as follows without problem:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;BEGIN example_package_name.example_procedure(p_item_no =&amp;gt; 123456, p_send_now =&amp;gt; true); END;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;(Note: &lt;code&gt;p_item_no&lt;/code&gt; expects a &lt;code&gt;NUMBER&lt;/code&gt; and &lt;code&gt;p_send_now&lt;/code&gt; expects a &lt;code&gt;BOOLEAN&lt;/code&gt;)&lt;/p&gt;&#xA;&lt;p&gt;I am attempting to run this from within my &lt;code&gt;Robot Framework&lt;/code&gt; test automation framework as shown below.&lt;/p&gt;&#xA;&lt;p&gt;First I have a small helper wrapper method for &lt;code&gt;robotframework-databaselibrary&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Execute SQL Store Procedure&#xA;  [Arguments]&#xA;  ...  ${target_database}&#xA;  ...  ${target_store_procedure}&#xA;  ...  ${store_procedure_arguments}&#xA;  ...  ${timeout}=5 minutes&#xA;  [Documentation]  Small wrapper around DatabaseLibrary for the: Call Stored Procedure keyword.&#xA;  [Timeout]  ${timeout}&#xA;&#xA;  __Open connection to target database  ${target_database}&#xA;  DatabaseLibrary.Set Auto Commit  autoCommit=${True}&#xA;  DatabaseLibrary.Call Stored Procedure  ${target_store_procedure}  ${store_procedure_arguments}&#xA;&#xA;  Close connection from the current database&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Next from my test I am attempting something as follows:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;${item_no_int}=  Convert To Integer  ${test_item_dictionary.item_no}&#xA;${example_procedure_argument_list}=  Create List  p_item_no =&amp;gt; ${item_no_int}  p_send_now =&amp;gt; ${True}&#xA;Execute SQL Store Procedure  target_database=test_db_name  target_store_procedure=example_package_name.example_procedure  store_procedure_arguments=${example_procedure_argument_list}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;My error reads:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;[info (&#x2B;0.10s)] Executing : Call Stored Procedure  |  example_package_name.example_procedure  | [&#x27;p_item_no =&amp;gt; 123456&#x27;, &#x27;p_send_now =&amp;gt; True&#x27;]&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;[FAIL] DatabaseError:ORA-06502: PL/SQL: numeric or value error: character to number conversion error ORA-06512: at line 1 Help: &lt;a href=&quot;https://docs.oracle.com/error-help/db/ora-06502/&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://docs.oracle.com/error-help/db/ora-06502/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;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: &lt;code&gt;DatabaseLibrary.Call Stored Procedure&lt;/code&gt; keyword, I see:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;def call_stored_procedure(&#xA;    self, spName: str, spParams: Optional[List[str]] = None, sansTran: bool = False, alias: Optional[str] = None&#xA;):&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;With description:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Calls a stored procedure &lt;code&gt;spName&lt;/code&gt; with the &lt;code&gt;spParams&lt;/code&gt; - a &lt;em&gt;list&lt;/em&gt; of&#xA;parameters the procedure requires.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Is it be possible that the Keyword &lt;code&gt;DatabaseLibrary.Call Stored Procedure&lt;/code&gt; / &lt;code&gt;spParams: Optional[List[str]]&lt;/code&gt; does not end up preserving one&#x27;s intended data types? Or is something else perhaps missing on my part?&lt;/p&gt;&#xA;&lt;p&gt;I am running:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;robotframework&amp;gt;=7.0.0&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;robotframework-databaselibrary&amp;gt;=1.4.3&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;oracledb&amp;gt;=2.1.0&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;
  222.        </summary>
  223.    </entry>
  224.    <entry>
  225.        <id>https://stackoverflow.com/q/78326593</id>
  226.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  227.        <title type="text">Keyword name cannot be empty after post request with expected_status in robotframework</title>
  228.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  229.            <category scheme="https://stackoverflow.com/tags" term="web-api-testing" />
  230.        <author>
  231.            <name>marysh</name>
  232.            <uri>https://stackoverflow.com/users/13665269</uri>
  233.        </author>
  234.        <link rel="alternate" href="https://stackoverflow.com/questions/78326593/keyword-name-cannot-be-empty-after-post-request-with-expected-status-in-robotfra" />
  235.        <published>2024-04-15T07:03:47Z</published>
  236.        <updated>2024-04-15T07:44:34Z</updated>
  237.        <summary type="html">
  238.            &lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/nv7mU.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;enter image description here&lt;/a&gt;I&#x27;m going create Negative Test with post request by expected_status,but I confront Keyword name cannot be empty message.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;InvalidPassword Test&#xA;    [Tags]    InvalidPassword&#xA;    Create Session    InvalidPassword     ${url_api}/${end_point_login}    &#xA;    Log To Console    ${url_api}/${end_point_login}&#xA;    ${body}=    Create Dictionary    mobile=*****     password=******        key=1&#xA;    ${header}=    Create Dictionary           Accept=application/Json&#xA;    ${response}=    POST On Session    InvalidPassword    ${url_api}/${end_point_login}    data=${body}    expected_status=422 &#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/7gmZr.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;enter image description here&lt;/a&gt;&lt;/p&gt;&#xA;
  239.        </summary>
  240.    </entry>
  241.    <entry>
  242.        <id>https://stackoverflow.com/q/78312313</id>
  243.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  244.        <title type="text">How to find valid locator for images using Selenium?</title>
  245.            <category scheme="https://stackoverflow.com/tags" term="css" />
  246.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  247.        <author>
  248.            <name>msb</name>
  249.            <uri>https://stackoverflow.com/users/24245028</uri>
  250.        </author>
  251.        <link rel="alternate" href="https://stackoverflow.com/questions/78312313/how-to-find-valid-locator-for-images-using-selenium" />
  252.        <published>2024-04-11T18:11:06Z</published>
  253.        <updated>2024-04-12T12:23:58Z</updated>
  254.        <summary type="html">
  255.            &lt;p&gt;I am trying to write a simple code to go to &lt;a href=&quot;https://rpachallenge.com&quot; rel=&quot;nofollow noreferrer&quot;&gt;rpachallenge.com&lt;/a&gt;, switch to the Movie Search Tab, search for a movie, then download the three resulting movies&#x27; title card image, title, and description to a JSON file. So far I&#x27;m able to do everything up to and including searching, but I&#x27;m unable to find a unique valid locator for the title cards.&lt;/p&gt;&#xA;&lt;p&gt;When I inspect the page, each of the three resulting movies has code like the following:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;&amp;lt;div _ngcontent-c3 class=&amp;quot;cardItem&amp;quot;&amp;gt;&#xA;    &amp;lt;div _ngcontent-3 class=&amp;quot;col s4 &amp;quot;&amp;gt;&#xA;        &amp;lt;!--bindings={&amp;quot;ng-reflect-ng-if&amp;quot;:&amp;quot;/d5NXSklXo0qyIYkgV94XAgMIckC.j&amp;quot;}--&amp;gt;&#xA;        &amp;lt;div _ngcontent-c3 class=&amp;quot;card col s12&amp;quot;&amp;gt; =&#xA;            &amp;lt;div _ngcontent-c3 class=&amp;quot;card-image&amp;quot;&amp;gt;&#xA;                &amp;lt;img _ngcontent-c3 src=&#x200B;&amp;quot;http:&#x200B;/&#x200B;/&#x200B;image.tmdb.org/&#x200B;t/&#x200B;p/&#x200B;w500//d5NXSklXo0qyIYkgV94XAgMIckC.jpg&amp;quot;&amp;gt;&#x200B;&#xA;                    &amp;lt;!--bindings={ &amp;quot;ng-reflect-ng-if&amp;quot;: &amp;quot;true&amp;quot; &amp;gt;--&amp;gt;&#xA;                ...&#xA;            &amp;lt;/div&amp;gt;&#xA;            &amp;lt;div _ngcontent-c3 class=&amp;quot;card-content&amp;quot;&amp;gt;&#xA;                &amp;lt;span _ngcontent-c3 class=&amp;quot;card-title activator&amp;quot;&amp;gt;Dune &amp;lt;/span&amp;gt; =&#xA;                ...&#xA;                &amp;lt;p _ngcontent-c3&amp;gt; Paul Atreides, a brilliant and gifted young man born into a great dest...&amp;lt;/p&amp;gt;&#xA;            &amp;lt;/div&amp;gt;&#xA;        &amp;lt;/div&amp;gt;&#xA;    &amp;lt;/div&amp;gt;&#xA;&amp;lt;/div&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;where all of the code is the same except (d5NXSklXo0qyIYkgV94XAgMIckC.j), the image source (http:&#x200B;/&#x200B;/&#x200B;image.tmdb.org/&#x200B;t/&#x200B;p/&#x200B;w500//d5NXSklXo0qyIYkgV94XAgMIckC.jpg), movie title (Dune), and shortened movie description (Paul Atreides, a brilliant...).&lt;/p&gt;&#xA;&lt;p&gt;When I try locating the image using its class=&amp;quot;card-image&amp;quot;, I get the error&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;WebDriverException: ... {&amp;quot;code&amp;quot;:-32000,&amp;quot;message&amp;quot;:&amp;quot;Cannot take screenshot with 0 height.&amp;quot;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;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.&lt;/p&gt;&#xA;&lt;p&gt;I think this should be doable with keywords from the Selenium Library but I am brand new to this and couldn&#x27;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&#x27;m doing... Any help would be much appreciated.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;*** Settings ***&#xA;Documentation     Searches for given movie on RPA Challenge site &#xA;...               and saves resulting data in JSON.&#xA;&#xA;Library           OperatingSystem&#xA;Library           RPA.Browser.Selenium&#xA;&#xA;Suite Teardown    Close All Browsers&#xA;&#xA;&#xA;*** Variables ***&#xA;${RPA_Challenge_URL}     https://rpachallenge.com&#xA;${img_URL}     http://image.tmdb.org&#xA;${movie}     Dune&#xA;&#xA;&#xA;*** Keywords ***&#xA;Open RPA Challenge Page&#xA;    ${use_chrome} =     Get Environment Variable     USE_CHROME     ${EMPTY}&#xA;    IF    &amp;quot;${use_chrome}&amp;quot; != &amp;quot;&amp;quot;&#xA;        Open Available Browser    ${RPA_Challenge_URL}    browser_selection=Chrome&#xA;        ...    download=${True}  # forces Chrome and matching webdriver download&#xA;    ELSE&#xA;        Open Available Browser    ${RPA_Challenge_URL}  # opens any available browser&#xA;    END   &#xA;&#xA;Switch to Movie Search Tab&#xA;    Click Link     xpath://a[text()=&#x27;Movie Search&#x27;]&#xA;&#xA;Search for Given Movie&#xA;    Input Text     name:searchStr     ${movie}&#xA;    Press Keys    name:searchStr    ENTER&#xA;    Wait Until Page Contains Element     css:div[class=&#x27;card-image&#x27;]&#xA;&#xA;# WebDriverException: ... {&amp;quot;code&amp;quot;:-32000,&amp;quot;message&amp;quot;:&amp;quot;Cannot take screenshot with 0 height.&amp;quot;}&#xA;Save Movie Card Image&#xA;    # Assign ID to Element  //ul[@class=&#x27;card-image&#x27; and ./li[contains(., &#x27;_ngcontent-c3&#x27;)]]    movie_cover&#xA;    Capture Element Screenshot     css:div[class=&#x27;card-image&#x27;]&#xA;    # Capture Element Screenshot     xpath://a[contains(text(), &#x27;image.tmdb.org&#x27;.)]&#xA;    # Capture Element Screenshot     xpath://a[tag:img]&#xA;    # Capture Element Screenshot     css:div[class=&#x27;card-image&#x27; and contains(text(), &#x27;image&#x27;)]    # invalid&#xA;&#xA;# Element with locator &#x27;css:div[class=&#x27;card-title-activator&#x27;]&#x27; not found.&#xA;Save Movie Title&#xA;    Capture Element Screenshot     css:div[class=&#x27;card-title-activator&#x27;]&#xA;&#xA;# Return JSON&#xA;    # print(driver.find_element_by_xpath(&amp;quot;//div[@id=&#x27;json&#x27;]&amp;quot;).text)&#xA;    # Does the above need to go in a .py file?&#xA;&#xA;*** Tasks ***&#xA;Return movie information from RPA Challenge site&#xA;    TRY&#xA;        Open RPA Challenge Page&#xA;        Switch to Movie Search Tab&#xA;        Search for Given Movie&#xA;        # Save Movie Title&#xA;        Save Movie Card Image&#xA;    EXCEPT&#xA;        ${err_ss} =    Set Variable    ${OUTPUT_DIR}${/}error.png&#xA;        Capture Page Screenshot     ${err_ss}&#xA;        Fail    Checkout the screenshot: ${err_ss}&#xA;    END&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;
  256.        </summary>
  257.    </entry>
  258.    <entry>
  259.        <id>https://stackoverflow.com/q/78298458</id>
  260.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  261.        <title type="text">How to pass cookie to get request Robot framework with API (RequestsLibrary)</title>
  262.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  263.            <category scheme="https://stackoverflow.com/tags" term="session-cookies" />
  264.            <category scheme="https://stackoverflow.com/tags" term="web-api-testing" />
  265.        <author>
  266.            <name>marysh</name>
  267.            <uri>https://stackoverflow.com/users/13665269</uri>
  268.        </author>
  269.        <link rel="alternate" href="https://stackoverflow.com/questions/78298458/how-to-pass-cookie-to-get-request-robot-framework-with-api-requestslibrary" />
  270.        <published>2024-04-09T12:31:53Z</published>
  271.        <updated>2024-04-09T21:36:27Z</updated>
  272.        <summary type="html">
  273.            &lt;p&gt;I want to use the cookie, received from the session in which I do &lt;code&gt;POST&lt;/code&gt; request, in the next session with &lt;code&gt;GET&lt;/code&gt; request, but I have problem.&lt;/p&gt;&#xA;&lt;p&gt;Here is my keyword:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;MY_Profile&#xA;    Log To Console    HEADER&#xA;    Log To Console    COOKIE&#xA;    Create Session    mySession         ${api_auth}    ${cookie}&#xA;    ${response}=      GET On Session    mySession      ${api_auth}&#xA;    Log To Console    ${response.status_code}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This is the error I received:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;${cookie} is Unknown in this session&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;
  274.        </summary>
  275.    </entry>
  276.    <entry>
  277.        <id>https://stackoverflow.com/q/78291118</id>
  278.        <re:rank scheme="https://stackoverflow.com">-1</re:rank>
  279.        <title type="text">I want write a code that &#x27;clicking on a button from a dropdown with robotframwork&#x27;</title>
  280.            <category scheme="https://stackoverflow.com/tags" term="automation" />
  281.            <category scheme="https://stackoverflow.com/tags" term="automated-tests" />
  282.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  283.            <category scheme="https://stackoverflow.com/tags" term="ui-automation" />
  284.        <author>
  285.            <name>Ida beigi</name>
  286.            <uri>https://stackoverflow.com/users/24080823</uri>
  287.        </author>
  288.        <link rel="alternate" href="https://stackoverflow.com/questions/78291118/i-want-write-a-code-that-clicking-on-a-button-from-a-dropdown-with-robotframwor" />
  289.        <published>2024-04-08T08:17:29Z</published>
  290.        <updated>2024-04-08T08:17:29Z</updated>
  291.        <summary type="html">
  292.            &lt;p&gt;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 &#x27;not found&#x27;&lt;/p&gt;&#xA;&lt;p&gt;for dropdown i tried  &#x2018;Select From List By Label&#x2019;&#x2018;Select From List By Value&#x2019; but not working&#xA;these are another way i try and dont get ansewr,also i try with TAB or ENTER  and not working&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&quot;https://i.stack.imgur.com/eeyIc.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;enter image description here&lt;/a&gt;(on picture), Can anyone to help me this?&#xA;also i try with TAB or ENTER  and not working&lt;/p&gt;&#xA;
  293.        </summary>
  294.    </entry>
  295.    <entry>
  296.        <id>https://stackoverflow.com/q/78283301</id>
  297.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  298.        <title type="text">&quot;WebDriverException: The requested resource could not be found while using AppiumLibrary in Robot Framework&quot;</title>
  299.            <category scheme="https://stackoverflow.com/tags" term="android" />
  300.            <category scheme="https://stackoverflow.com/tags" term="windows" />
  301.            <category scheme="https://stackoverflow.com/tags" term="pycharm" />
  302.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  303.            <category scheme="https://stackoverflow.com/tags" term="appium-android" />
  304.        <author>
  305.            <name>Sumayya Shaji</name>
  306.            <uri>https://stackoverflow.com/users/24049005</uri>
  307.        </author>
  308.        <link rel="alternate" href="https://stackoverflow.com/questions/78283301/webdriverexception-the-requested-resource-could-not-be-found-while-using-appiu" />
  309.        <published>2024-04-06T05:09:08Z</published>
  310.        <updated>2024-04-06T05:09:08Z</updated>
  311.        <summary type="html">
  312.            &lt;p&gt;I&#x27;m encountering an issue while using the AppiumLibrary in Robot Framework. When trying to open an application using the Open Application keyword, I&#x27;m getting a WebDriverException with the message &amp;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.&amp;quot; Below is the relevant portion of the test log:[&lt;a href=&quot;https://i.stack.imgur.com/6vhyq.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;enter image description here&lt;/a&gt;](&lt;a href=&quot;https://i.stack.imgur.com/0MBBd.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://i.stack.imgur.com/0MBBd.png&lt;/a&gt;)&#xA;I&#x27;m using AppiumLibrary for Robot Framework to automate testing on Android devices. I&#x27;ve verified that the Appium server is running and that the desired capabilities are correctly configured in my test script.&#xA;here is my test script:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/fayjE.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;enter image description here&lt;/a&gt;&#xA;Could anyone provide insights into why this error might be occurring and how to resolve it? Any help would be greatly appreciated. Thank you!&lt;/p&gt;&#xA;
  313.        </summary>
  314.    </entry>
  315.    <entry>
  316.        <id>https://stackoverflow.com/q/78280027</id>
  317.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  318.        <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>
  319.            <category scheme="https://stackoverflow.com/tags" term="python" />
  320.            <category scheme="https://stackoverflow.com/tags" term="selenium-chromedriver" />
  321.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  322.        <author>
  323.            <name>user24031575</name>
  324.            <uri>https://stackoverflow.com/users/24031575</uri>
  325.        </author>
  326.        <link rel="alternate" href="https://stackoverflow.com/questions/78280027/how-can-i-force-robot-framework-to-stop-connecting-to-the-internet-to-check-for" />
  327.        <published>2024-04-05T12:53:19Z</published>
  328.        <updated>2024-04-05T12:53:19Z</updated>
  329.        <summary type="html">
  330.            &lt;p&gt;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&#x27;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&#x27;re limited to what we can do as we cannot change system PATH variables either. What we&#x27;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!&lt;/p&gt;&#xA;
  331.        </summary>
  332.    </entry>
  333.    <entry>
  334.        <id>https://stackoverflow.com/q/78278900</id>
  335.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  336.        <title type="text">Running 2 robot files parallelly in chrome using robot framework</title>
  337.            <category scheme="https://stackoverflow.com/tags" term="testing" />
  338.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  339.            <category scheme="https://stackoverflow.com/tags" term="automation-testing" />
  340.            <category scheme="https://stackoverflow.com/tags" term="testautomationfx" />
  341.            <category scheme="https://stackoverflow.com/tags" term="robotframework-browser" />
  342.        <author>
  343.            <name>Harman</name>
  344.            <uri>https://stackoverflow.com/users/11344151</uri>
  345.        </author>
  346.        <link rel="alternate" href="https://stackoverflow.com/questions/78278900/running-2-robot-files-parallelly-in-chrome-using-robot-framework" />
  347.        <published>2024-04-05T09:20:23Z</published>
  348.        <updated>2024-04-05T09:20:23Z</updated>
  349.        <summary type="html">
  350.            &lt;p&gt;I have two robot files lets say a.robot and b.robot.&#xA;A.robot files takes around 30 mins to execute and b.robot takes around 1 hour to execute.&#xA;I want to run both of them parallelly, so that both of these files are executed in 1 hour.&lt;/p&gt;&#xA;&lt;p&gt;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.&lt;/p&gt;&#xA;&lt;p&gt;This is the error I get:&#xA;&lt;a href=&quot;https://i.stack.imgur.com/o44P3.png&quot; rel=&quot;nofollow noreferrer&quot;&gt;Error while trying to run the robot files together&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;For execution I&#x27;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.&lt;/p&gt;&#xA;
  351.        </summary>
  352.    </entry>
  353.    <entry>
  354.        <id>https://stackoverflow.com/q/78242438</id>
  355.        <re:rank scheme="https://stackoverflow.com">1</re:rank>
  356.        <title type="text">Unresolved library: AppiumLibrary</title>
  357.            <category scheme="https://stackoverflow.com/tags" term="appium" />
  358.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  359.            <category scheme="https://stackoverflow.com/tags" term="python-appium" />
  360.        <author>
  361.            <name>reaksmey chan</name>
  362.            <uri>https://stackoverflow.com/users/23881709</uri>
  363.        </author>
  364.        <link rel="alternate" href="https://stackoverflow.com/questions/78242438/unresolved-library-appiumlibrary" />
  365.        <published>2024-03-29T07:08:27Z</published>
  366.        <updated>2024-04-02T06:30:32Z</updated>
  367.        <summary type="html">
  368.            &lt;p&gt;When generating libspec, I am getting this error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Importing library &#x27;AppiumLibrary&#x27; failed: ModuleNotFoundError: No module named &#x27;appium.webdriver.common.touch_action&#x27;&#xA;Consider adding the needed paths to the &amp;quot;robot.pythonpath&amp;quot; setting&#xA;and calling the &amp;quot;Robot Framework: Clear caches and restart&amp;quot; action.robotframework&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;I have tried a number of solutions with my information such as:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Appium version: 2.0.1&lt;/li&gt;&#xA;&lt;li&gt;Python version: 3.9.6&lt;/li&gt;&#xA;&lt;li&gt;Robotframework version: 7.0&lt;/li&gt;&#xA;&lt;li&gt;robotframework-appiumlibrary version: 2.0.0&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;
  369.        </summary>
  370.    </entry>
  371.    <entry>
  372.        <id>https://stackoverflow.com/q/78237108</id>
  373.        <re:rank scheme="https://stackoverflow.com">-1</re:rank>
  374.        <title type="text">RPA using robotframework in springboot</title>
  375.            <category scheme="https://stackoverflow.com/tags" term="java" />
  376.            <category scheme="https://stackoverflow.com/tags" term="python-3.x" />
  377.            <category scheme="https://stackoverflow.com/tags" term="spring-boot" />
  378.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  379.            <category scheme="https://stackoverflow.com/tags" term="rpa" />
  380.        <author>
  381.            <name>Aditi Dhal</name>
  382.            <uri>https://stackoverflow.com/users/23819613</uri>
  383.        </author>
  384.        <link rel="alternate" href="https://stackoverflow.com/questions/78237108/rpa-using-robotframework-in-springboot" />
  385.        <published>2024-03-28T09:28:28Z</published>
  386.        <updated>2024-04-02T06:30:44Z</updated>
  387.        <summary type="html">
  388.            &lt;p&gt;I have worked on java spring-boot but I don&#x27;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??&lt;/p&gt;&#xA;&lt;p&gt;*** Settings ***&#xA;Library    SeleniumLibrary    run_on_failure=NOTHING&#xA;Library    BuiltIn&#xA;Library    Collections&#xA;Test Timeout    10 minutes&lt;/p&gt;&#xA;&lt;p&gt;*** Test Cases ***&#xA;Login Test&#xA;Set Robot Variables From Properties&#xA;${chrome_options}=  Evaluate  sys.modules[&#x27;selenium.webdriver&#x27;].ChromeOptions()  sys, selenium.webdriver&#xA;Call Method    ${chrome_options}    add_argument    --no-sandbox&lt;/p&gt;&#xA;&lt;h1&gt;Call Method    ${chrome_options}    add_argument    --headless&lt;/h1&gt;&#xA;&lt;pre&gt;&lt;code&gt;Call Method    ${chrome_options}    add_argument    --start-maximized&#xA;Set Selenium Timeout    10sec&#xA;Open Browser   https://www.google.com/&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;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??&lt;/p&gt;&#xA;
  389.        </summary>
  390.    </entry>
  391.    <entry>
  392.        <id>https://stackoverflow.com/q/78234822</id>
  393.        <re:rank scheme="https://stackoverflow.com">-1</re:rank>
  394.        <title type="text">RobotFramework hangs after xx lines of log</title>
  395.            <category scheme="https://stackoverflow.com/tags" term="python" />
  396.            <category scheme="https://stackoverflow.com/tags" term="python-3.x" />
  397.            <category scheme="https://stackoverflow.com/tags" term="logging" />
  398.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  399.        <author>
  400.            <name>LUKISO2</name>
  401.            <uri>https://stackoverflow.com/users/15999194</uri>
  402.        </author>
  403.        <link rel="alternate" href="https://stackoverflow.com/questions/78234822/robotframework-hangs-after-xx-lines-of-log" />
  404.        <published>2024-03-27T21:59:05Z</published>
  405.        <updated>2024-03-27T21:59:05Z</updated>
  406.        <summary type="html">
  407.            &lt;p&gt;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.&lt;/p&gt;&#xA;&lt;p&gt;Any suggestions? Thanks.&lt;/p&gt;&#xA;
  408.        </summary>
  409.    </entry>
  410.    <entry>
  411.        <id>https://stackoverflow.com/q/78231133</id>
  412.        <re:rank scheme="https://stackoverflow.com">-1</re:rank>
  413.        <title type="text">how to mention tags in robotframework while writing scripts</title>
  414.            <category scheme="https://stackoverflow.com/tags" term="tags" />
  415.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  416.        <author>
  417.            <name>Arjun</name>
  418.            <uri>https://stackoverflow.com/users/23000033</uri>
  419.        </author>
  420.        <link rel="alternate" href="https://stackoverflow.com/questions/78231133/how-to-mention-tags-in-robotframework-while-writing-scripts" />
  421.        <published>2024-03-27T10:55:11Z</published>
  422.        <updated>2024-03-27T11:14:53Z</updated>
  423.        <summary type="html">
  424.            &lt;p&gt;when we write test cases in the robot framework how to add test cases under the specific tag.&lt;/p&gt;&#xA;&lt;p&gt;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.&lt;/p&gt;&#xA;
  425.        </summary>
  426.    </entry>
  427.    <entry>
  428.        <id>https://stackoverflow.com/q/78230130</id>
  429.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  430.        <title type="text">CreateProcess Error = 5 Access Denied in Robotframework Pycharm</title>
  431.            <category scheme="https://stackoverflow.com/tags" term="python" />
  432.            <category scheme="https://stackoverflow.com/tags" term="pycharm" />
  433.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  434.            <category scheme="https://stackoverflow.com/tags" term="automation-testing" />
  435.        <author>
  436.            <name>Maaz Ahmad</name>
  437.            <uri>https://stackoverflow.com/users/23815541</uri>
  438.        </author>
  439.        <link rel="alternate" href="https://stackoverflow.com/questions/78230130/createprocess-error-5-access-denied-in-robotframework-pycharm" />
  440.        <published>2024-03-27T08:01:26Z</published>
  441.        <updated>2024-03-27T10:17:03Z</updated>
  442.        <summary type="html">
  443.            &lt;p&gt;I am trying to do automation database testing with robotframework in Pycharm. On running the Test Case I am getting this error:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Error running &#x27;run current file&#x27; Cannot run program &amp;quot;C:\Users\Maaz\AppData\Local\Programs\Python\Python312\Scripts&amp;quot; (in directory &amp;quot;C:\Users\Maaz\PycharmProjects\Test_Project&amp;quot;): CreateProcess error=5, Access is denied&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;
  444.        </summary>
  445.    </entry>
  446.    <entry>
  447.        <id>https://stackoverflow.com/q/78225395</id>
  448.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  449.        <title type="text">Error while importing Database Library in robot framework in Pycharm</title>
  450.            <category scheme="https://stackoverflow.com/tags" term="python" />
  451.            <category scheme="https://stackoverflow.com/tags" term="pycharm" />
  452.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  453.        <author>
  454.            <name>Maaz Ahmad</name>
  455.            <uri>https://stackoverflow.com/users/23815541</uri>
  456.        </author>
  457.        <link rel="alternate" href="https://stackoverflow.com/questions/78225395/error-while-importing-database-library-in-robot-framework-in-pycharm" />
  458.        <published>2024-03-26T12:40:00Z</published>
  459.        <updated>2024-03-27T08:52:42Z</updated>
  460.        <summary type="html">
  461.            &lt;p&gt;I am importing DatabaseLibrary in the Robot Framework in Pycharm but it&#x27;s showing Unresolved Module. I have tried all possible reasons from my side but unable to resolve this problem.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Unresolved library: DatabaseLibrary. Error generating libspec: Importing library &#x27;DatabaseLibrary&#x27; failed: ModuleNotFoundError: No module named &#x27;DatabaseLibrary&#x27; Consider adding the needed paths to the &amp;quot;robot.pythonpath&amp;quot; setting and calling the &amp;quot;Robot Framework: Clear caches and restart&amp;quot; action.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Please help me out from this.&lt;/p&gt;&#xA;&lt;p&gt;I have tried installing &lt;code&gt;pip install robotframework-databaseLibrary&lt;/code&gt;&#xA;and much more that i can not explain that here in writing.&lt;/p&gt;&#xA;
  462.        </summary>
  463.    </entry>
  464.    <entry>
  465.        <id>https://stackoverflow.com/q/78224734</id>
  466.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  467.        <title type="text">How to fail robot framework execution in listener?</title>
  468.            <category scheme="https://stackoverflow.com/tags" term="python-3.x" />
  469.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  470.        <author>
  471.            <name>rider45</name>
  472.            <uri>https://stackoverflow.com/users/13869895</uri>
  473.        </author>
  474.        <link rel="alternate" href="https://stackoverflow.com/questions/78224734/how-to-fail-robot-framework-execution-in-listener" />
  475.        <published>2024-03-26T10:53:41Z</published>
  476.        <updated>2024-03-26T10:53:41Z</updated>
  477.        <summary type="html">
  478.            &lt;p&gt;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)?&lt;/p&gt;&#xA;&lt;p&gt;Sincerely&lt;/p&gt;&#xA;
  479.        </summary>
  480.    </entry>
  481.    <entry>
  482.        <id>https://stackoverflow.com/q/78208470</id>
  483.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  484.        <title type="text">Run Robot in Jenkinsfile does not fetch the correct test.robot file from Github</title>
  485.            <category scheme="https://stackoverflow.com/tags" term="jenkins" />
  486.            <category scheme="https://stackoverflow.com/tags" term="testing" />
  487.            <category scheme="https://stackoverflow.com/tags" term="version-control" />
  488.            <category scheme="https://stackoverflow.com/tags" term="automated-tests" />
  489.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  490.        <author>
  491.            <name>P&#xE4;r Ershag</name>
  492.            <uri>https://stackoverflow.com/users/23742695</uri>
  493.        </author>
  494.        <link rel="alternate" href="https://stackoverflow.com/questions/78208470/run-robot-in-jenkinsfile-does-not-fetch-the-correct-test-robot-file-from-github" />
  495.        <published>2024-03-22T19:28:42Z</published>
  496.        <updated>2024-03-22T22:52:36Z</updated>
  497.        <summary type="html">
  498.            &lt;p&gt;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&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;pipeline {&#xA;    agent any&#xA;    stages { &#xA;        stage(&#x27;build&#x27;){&#xA;           steps{&#xA;               sh &amp;quot;mvn compile&amp;quot;&#xA;           }&#xA;        }&#xA;        stage(&#x27;Test&#x27;) {&#xA;            steps{&#xA;                sh &amp;quot;mvn test&amp;quot;&#xA;            }&#xA;            post {&#xA;                always {&#xA;                    jacoco(&#xA;                        execPattern: &#x27;target/*.exec&#x27;,&#xA;                        classPattern: &#x27;target/classes&#x27;,&#xA;                        sourcePattern: &#x27;src/main/java&#x27;,&#xA;                        exclusionPattern: &#x27;src/test*&#x27;&#xA;                    )&#xA;                    junit &#x27;**/TEST*.xml&#x27;&#xA;                }&#xA;            }&#xA;        }&#xA;        stage(&#x27;Run Robot and Post Test&#x27;) {&#xA;            steps{&#xA;                sh script: &#x27;python -m robot C:/Users/ersha/.jenkins/workspace/P&#xE4;r_Ershag/Selenium/test.robot&#x27;, returnStatus: true&#xA;            }&#xA;            post {&#xA;                always {&#xA;                    robot outputPath: &#x27;C:/Users/ersha/.jenkins/workspace/P&#xE4;r_Ershag@2&#x27;, passThreshold: 100.0, unstableThreshold: 70.0, onlyCritical: false&#xA;                }&#xA;            }&#xA;        }&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;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: &#x27;python -m robot...&#x27; is refering to. Main and b1 have both different versions of the file but neither are run. This despite having a &amp;quot;clean before cheackout&amp;quot; step in additional behaviours.&lt;/p&gt;&#xA;&lt;p&gt;I have compared my Jenkinsfile to others doing the same project and the biggest difference is that the stage for &#x27;Run Robot and Post Test&#x27; is stated as:&#xA;bat &amp;quot; robot &lt;em&gt;their test.robot path&lt;/em&gt;&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;I can&#x27;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.&lt;/p&gt;&#xA;&lt;p&gt;ps: I&#x27;m kinda new to Jenkins so there are many things that I don&#x27;t understand yet.&lt;/p&gt;&#xA;
  499.        </summary>
  500.    </entry>
  501.    <entry>
  502.        <id>https://stackoverflow.com/q/78207470</id>
  503.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  504.        <title type="text">Import Variables in Suite Setup does not import variables for all the test suite</title>
  505.            <category scheme="https://stackoverflow.com/tags" term="python" />
  506.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  507.        <author>
  508.            <name>Romain Bosq</name>
  509.            <uri>https://stackoverflow.com/users/6051534</uri>
  510.        </author>
  511.        <link rel="alternate" href="https://stackoverflow.com/questions/78207470/import-variables-in-suite-setup-does-not-import-variables-for-all-the-test-suite" />
  512.        <published>2024-03-22T16:04:09Z</published>
  513.        <updated>2024-03-22T16:04:09Z</updated>
  514.        <summary type="html">
  515.            &lt;p&gt;I am kinda new with Robot.&#xA;similarly to this &lt;a href=&quot;https://stackoverflow.com/questions/47490802/how-to-make-variables-from-import-variables-globally-available&quot;&gt;How to make variables from &amp;#39;Import Variables&amp;#39; globally available?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I am trying to import dynamically variables defined in a python file depending if the tester specified --variable device:A or device:B&lt;/p&gt;&#xA;&lt;p&gt;Both devices have the same variables but values are different.&lt;/p&gt;&#xA;&lt;p&gt;My repo looks like this:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;folder&#xA;      |_ __init__.robot&#xA;      |_ test.robot&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I have something like that in the __init__.robot:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;In __init__.robot:&#xA;&#xA;Suite Setup      Initialize Device&#xA;&#xA;*** Keywords ***    &#xA;Initialize Device&#xA;    [Documentation]    Initializes the device based on a constant value&#xA;    [Arguments]    ${device_type}&#xA;    IF   &#x27;${device_type}&#x27; == &#x27;A&#x27;&#xA;        Import Variables  projects/A/variables_A.py&#xA;    ELSE IF    &#x27;${device_type}&#x27; == &#x27;B&#x27;&#xA;        Import Variables  projects/B/variables_B.py&#xA;END&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;And in test.robot:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;*** Test Cases ***&#xA;Print device ID&#xA;    Log ${device_id}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The variable device_id is defined in both variables_X.py files&lt;/p&gt;&#xA;&lt;p&gt;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:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Variables imported with this keyword are set into the test suite scope&#xA;similarly when importing them in the Setting table using the Variables&#xA;setting.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;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?&lt;/p&gt;&#xA;
  516.        </summary>
  517.    </entry>
  518.    <entry>
  519.        <id>https://stackoverflow.com/q/78206052</id>
  520.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  521.        <title type="text">&quot;Importing test library &#x27;SSHLibrary&#x27; failed: ModuleNotFoundError: No module named &#x27;SSHLibrary&#x27;</title>
  522.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  523.            <category scheme="https://stackoverflow.com/tags" term="robotframework-sshlibrary" />
  524.        <author>
  525.            <name>Pop I like</name>
  526.            <uri>https://stackoverflow.com/users/13374367</uri>
  527.        </author>
  528.        <link rel="alternate" href="https://stackoverflow.com/questions/78206052/importing-test-library-sshlibrary-failed-modulenotfounderror-no-module-name" />
  529.        <published>2024-03-22T11:54:28Z</published>
  530.        <updated>2024-03-22T11:54:28Z</updated>
  531.        <summary type="html">
  532.            &lt;pre&gt;&lt;code&gt;&amp;quot;message&amp;quot;: &amp;quot;Importing test library &#x27;SSHLibrary&#x27; failed: ModuleNotFoundError: No module named &#x27;SSHLibrary&#x27;\nTraceback (most recent call last):\n  None\nPYTHONPATH:\&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;python version: 3.12&#xA;robot framwork : 6.0&#xA;sshlibrarry :3.8.0&#xA;visual studio 2019&lt;/p&gt;&#xA;&lt;p&gt;still I see the import error .&lt;/p&gt;&#xA;&lt;p&gt;please help in resolve.&lt;/p&gt;&#xA;&lt;p&gt;what exact version i need to have here ?&#xA;i switched to python 2.7. still it does not help&#xA;anyone facing similar issues?&lt;/p&gt;&#xA;
  533.        </summary>
  534.    </entry>
  535.    <entry>
  536.        <id>https://stackoverflow.com/q/78205265</id>
  537.        <re:rank scheme="https://stackoverflow.com">0</re:rank>
  538.        <title type="text">How do I scroll down the child popup scrollbar using the robot framework?</title>
  539.            <category scheme="https://stackoverflow.com/tags" term="selenium-webdriver" />
  540.            <category scheme="https://stackoverflow.com/tags" term="automation" />
  541.            <category scheme="https://stackoverflow.com/tags" term="robotframework" />
  542.            <category scheme="https://stackoverflow.com/tags" term="automation-testing" />
  543.        <author>
  544.            <name>Ash</name>
  545.            <uri>https://stackoverflow.com/users/18963282</uri>
  546.        </author>
  547.        <link rel="alternate" href="https://stackoverflow.com/questions/78205265/how-do-i-scroll-down-the-child-popup-scrollbar-using-the-robot-framework" />
  548.        <published>2024-03-22T09:39:37Z</published>
  549.        <updated>2024-03-22T09:46:40Z</updated>
  550.        <summary type="html">
  551.            &lt;p&gt;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.&lt;/p&gt;&#xA;&lt;p&gt;I have the below code as an example, but it is not working.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;Get Product Price&#xA;    ${Value1}=    Get WebElement     ${SubTotal}&#xA;    Wait Until Element Is Visible    ${Value1}    timeout=60s&#xA;    Execute JavaScript    window.document.getElementById(&#x27;${Value1}&#x27;).scrollIntoView();&#xA;    ${Price}=       Get Text        ${SubTotal}&#xA;    Log      Price is:- ${Price}&#xA;    Log To Console    \nPrice is:- ${Price}&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;${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}&lt;/p&gt;&#xA;
  552.        </summary>
  553.    </entry>
  554. </feed>

If you would like to create a banner that links to this page (i.e. this validation result), do the following:

  1. Download the "valid Atom 1.0" banner.

  2. Upload the image to your own server. (This step is important. Please do not link directly to the image on this server.)

  3. 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:

http://www.feedvalidator.org/check.cgi?url=http%3A//stackoverflow.com/feeds/tag%3Ftagnames%3Drobotframework%26sort%3Dnewest

Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda