title: In Robot Frame Work How Can we use value returned from one keyword as input argument to other keyword directly(without use of variable)
body: <p>How Can we use value returned from one keyword as input argument to other keyword directly (without assigning return value to variable)</p>
  
  <p>Currently I am maintaining all Web Elements or Variable names and corresponding xpath in an Excel Sheet. I get XPath using keyword <code>read_xpath</code> by passing web element/variable name as argument. </p>
  
  <p>I store the xpath in separate variable then make use of it for other or Next line keyword. Since I need to use a variable for each XPath access, i am trying to find out, whether is there any way to directly use one keyword output as input to other keyword without assigning it to variable.</p>
  
  <p>The main purpose of storing XPath in Excel sheet is to avoid multiple test cases change with single Element XPath change, making just single change on Excel Sheet should be sufficient.</p>
  
  <p>For Example:
   <code>read_xpath</code> reads values from a Excel sheet, Excel sheet has two columns, one <code>variable name</code> and second one is <code>xpath</code>. Function <code>read_xpath(element)</code> takes <code>variable name</code> as input and gives back <code>xpath</code>.</p>
  
  <p>xlread.py file looks like <a href="https://i.stack.imgur.com/pmWXp.png" rel="nofollow noreferrer">xlread.py code</a> Excel Sheet look like <a href="https://i.stack.imgur.com/FAQJ9.png" rel="nofollow noreferrer">Excel sheet</a></p>
  
  <p><strong>sample.robot</strong> file looks as below </p>
  
  <pre><code>${login_user_textctrl}=  read_xpath    username_textctrl
  
  clear element text  ${login_user_textctrl}
  Input text    ${login_user_textctrl}    admin
  </code></pre>
  
  <p>Now let us check how I used <code>read_xpath</code> keyword  in my robot file</p>
  
  <p>I called Keyword <code>read_xpath</code> with argument <code>username_texctrl</code>, which returns xpath for username text Control which is stored in variable <code>${login_user_textctrl}</code>. Now Input Text <code>${login_user_textctrl}</code> admin works fine.</p>
  
  <p>For  below code</p>
  
  <pre><code>      clear element text    read_xpath     username_textctrl           
  </code></pre>
  
  <p>I am getting, clear element text requires 1 argument but two arguments provided, is there any way i can use the the value returned from Keyword(read_xpath) as input to other keyword directly, without assigning it to any variable?</p>
  
  <p>Thanks in advance.</p>