I don’t understand how jump works. I want to do this: If Then the result is shown as FAIL, jumps to the place where the username and password are entered, and enters new data
If the result is good, then jump to the very beginning, opening the browser and the page.
Use the search function of the forum, this has been answered multiple times
I find it very difficult to use search because I use google translate. And very often it gives me zero results.
It was enough to type jump
…
Thanks Ruri. After the project entered login: password. I got to the keycheck block and was determined as a bad result, he jumps to the login and password input block, but does not take a new username and password.
I gave you a topic with an example, click on it and go look at what you’re doing wrong.
Ruri, JUMP works for me. But I do not understand how to take new data while the project is running
You cannot do that. Why are you trying to do it? The job automatically hands out data to the bots, so do not use a JUMP, just let the bot finish the work and it will restart with new data. Currently OB2 doesn’t support leaving a browser open and passing it to the next bot, I guess that’s the feature you’re trying to recreate, you have to wait until it’s implemented.
This greatly speeds up the work. Why wait every time a page loads?
Yes, in fact in OB1 this feature was present, I will add it to OB2 as well eventually. Please open an issue on github so I don’t forget.
Ruri, I won’t ask on github. But is it possible to clear the input form on the page.
I get it by creating a key press in page and a delete key, but this way I have to create a lot of such blocks.
Use the click block and set 3 times in the “click count” parameter, then press backspace once.
Thanks Ruri, I tried this too, yeah
Otherwise you can use some js and just set the value of the input to an empty string
I tried to paste this code in Execute JS, but it doesn’t work
async function clear(page, selector) {
await page.evaluate(selector => {
document.querySelector(selector).value = “”;
}, selector);
}
You cannot just paste random things and expect them to work xD you have to replace the selector
to the css selector that identifies your input field. Also you’re just defining a function, not calling it, and this is completely wrong in general because it’s some node JS code, not something you would directly execute in a browser. The stuff for the browser is inside the evaluate function. I’ll give you an example
document.querySelector('#username').value = "";