am building .exe using ocra like this ocra testing.rb -- sample
here am passing ''sample'' as argument to the below code and building an exe
require "selenium-webdriver"
$var = ARGV[0]
driver = Selenium::WebDriver.for :chrome
wait = Selenium::WebDriver::Wait.new(:timeout => 20)
puts $var
driver.navigate.to "https://accounts.google.com/ServiceLogin?service=mail&passive=true&rm=false&continue=https://mail.google.com/mail/&ss=1&scc=1<mpl=default<mplcache=2&emr=1&osid=1#identifier"
sleep 5
input = driver.find_element(:id, "Email")
input.send_keys($var)
button = driver.find_element(:id, "next")
button.click
sleep 5
the issue here is ,after building the .exe and when i tried to run exe by passing a different argument (value) it always takes the same value as "sample" to the argument as it was hard code .
C:\Users\shivaj\Downloads>testing.exe -- test1
it puts as sample
Please help me out with this ,i just made a sample program with issue but the actual program has more to do with it . Any help is appreciated . Thank you for the help !