the username is a “var” that tooked from username value element,neither the “password”
its a function that make a encrypted code and this code is the instruction that i extracted but i want to use in requests and normal config without selenium
thank if guide me
Example:
username=1
password=1
var key = btoa("u="+encodeURIComponent(username)+"&p="+encodeURIComponent(password))
then key : dT0xJnA9MQ==
I honestly didn’t understand anything of what you said, but it looks like you need a script block with Jint interpreter, pass the username and password as input variables (it won’t work if you pass input.USERNAME and input.PASSWORD directly, you need to put their values in other variables without the dot) and then extract the “key” variable from the script as output variable.
In OB1 you can use the BEGIN SCRIPT statement (look in LoliScript documentation) but I will not help more than this because OB1 is not supported anymore. Switch to OB2, there is the script block in OB2 and it’s really easy to use.