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?


  • administrators

    @nbd

    How can i verify if a element on browser is filled?

    You can check its input content with "Get Element Text" action

    0_1490167258713_GetElementText.png

    But normally you don't need to, you can just use "Type Text" and forget about it.

    0_1490167328687_TypeText.png

    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

    0_1490167572533_TiwtterInput.png

    Check tutorial 1 to get more details

    http://wiki.bablosoft.com/doku.php?id=tutorial1



  • 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; 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 ...


  • administrators

    @nbd

    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"

    0_1490535803931_IfAction.png

    0_1490535727830_iftext.xml

    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


  • administrators

    @nbd

    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


Log in to reply
 

Looks like your connection to Bablosoft was lost, please wait while we try to reconnect.