Introduction
This demo will demonstrate how to use Senuji user define
variables. For demo purpose I am going to open my Facebook sign in page and
read my name form a label and store it to a variable. Then open Google and pass
said variable value to Google search text box.
Senuji Script I used for this demo
Open "https://www.facebook.com/erandika.umal"VariableSring "$MyName="
StoreStringToVariable "$MyName" "Xpath:.//*[@id='fb-timeline-cover-name']"
NavigateURL "https://www.google.lk"
WaitForElementPresent "null" "Xpath:.//*[@id='lst-ib']"
InputStringVariableToTextbox "$MyName" "Xpath:.//*[@id='lst-ib']"