I just posted the relevant lines of my script as everything else would be quite confusing.
So instead of a static value I would like to use a variable to fill in the WebForm of my TestWebsite.
Using the code below I am able to successfully fill in the WebForm with static values like StaticTestUsername and StaticTestPassword.
Code: Select all
// TestWebsite.COM Login
put "TestUsername" into tDynamicLogin
put "TestPassword" into tDynamicPass
get revBrowserExecuteScript(tBrowserId2, "document.getElementById('COOKIEusername').value = 'StaticTestUsername';")
#get revBrowserExecuteScript(tBrowserId2, "document.getElementById('COOKIEusername').value = tDynamicLogin ;") # <- I would like to use the tDynamicLogin variable instead of a static value.
get revBrowserExecuteScript(tBrowserId2, "document.getElementById('COOKIEpass').value = 'StaticTestPassword';")
#get revBrowserExecuteScript(tBrowserId2, "document.getElementById('COOKIEpass').value = tDynamicPass';") # <- I would like to use the tDynamicPass variable instead of a static value.
Code: Select all
get revBrowserExecuteScript(tBrowserId2, "document.getElementById('COOKIEusername').value = 'tDynamicLogin';") // Whereas tDynamicLogin is "TestUsername"
get revBrowserExecuteScript(tBrowserId2, "document.getElementById('COOKIEpass').value = tDynamicPass';") // Whereas tDynamicPass is "TestPassword"
Regards,
Masterchief