title: How to pass argument when extend Robotframework AppiumLibrary to call appium execute_script function
body: <p>I have create a python file with the following content</p>
  <pre><code>from robot.libraries.BuiltIn import BuiltIn
  
  def scroll_page_to_the_bottom():
      BuiltIn().get_library_instance('AppiumLibrary').execute_script(&quot;mobile: scroll&quot;, {'direction': 'down'})
  </code></pre>
  <p>When I call from robot file with keyword <code>scroll_page_to_the_bottom</code> I got an error <code>TypeError: too many positional arguments</code></p>
  <p>I thought something wrong with my scripts and I try to use other mobile command such as <code>mobile: deviceInfo</code> and it works perfectly
  Here is the working execute_script from my code <code>BuiltIn().get_library_instance('AppiumLibrary').execute_script(&quot;mobile: deviceInfo&quot;)</code></p>
  <p>My question is how to pass command with argument to <code>execute_script</code>?</p>
  <p>referring to <a href="http://appium.io/docs/en/commands/mobile-command/index.html" rel="nofollow noreferrer">http://appium.io/docs/en/commands/mobile-command/index.html</a>, I have use the correct format <code>execute_script(&quot;mobile: scroll&quot;, {'direction': 'down'})</code> but got an error <code>TypeError: too many positional arguments</code> from robot execution</p>