Need help in If statement
-
How can i verify if a element on browser is filled?
How can i put to user insert a list, the program read line by line and use in inputs in the webpage inside a loop?
-
How can i verify if a element on browser is filled?
You can check its input content with "Get Element Text" action
But normally you don't need to, you can just use "Type Text" and forget about it.
How can i put to user insert a list, the program read line by line and use in inputs in the webpage inside a loop?
You need to create resource with type "LinesFromFile" as use resource in script
Check tutorial 1 to get more details
-
Yes, i can check with Get element text, but, how can i check if filled, and then do any action? like:
if (Element.Text != '') then
blablabla();Thanks very much.
-
And regarding the list, I wanted to know how it does for the content within the list for example:
User; password
User; passwordDo a loop, and fill up the page form with parseted data, in case:
Login element -> user
Password element -> passwordWhen you continue the loop, fill in the data from the second line of the list ...
-
Yes, i can check with Get element text, but, how can i check if filled, and then do any action? like:
if (Element.Text != '') then
blablabla();
Thanks very much.Use If action, to compare variable and string you write just [[SAVED_TEXT]] == "English"
There is also wiki article, which can help
http://wiki.bablosoft.com/doku.php?id=is_it_possible_to_execute_certain_action_depending_on_condition_if_statement
-
And regarding the list, I wanted to know how it does for the content within the list for example:
User; password
User; password
Do a loop, and fill up the page form with parseted data, in case:
Login element -> user
Password element -> password
When you continue the loop, fill in the data from the second line of the list ...Best of all is to let thread to restart itself, than new thread will spawn and it will get a new user password pair automatically.
I suggest this approach because it is optimised for multithreading.
Of course you can use loop as well.
http://wiki.bablosoft.com/doku.php?id=is_it_possible_to_use_loops