Jump to content
UBot Underground

I Want Dont Close In New Browser


Recommended Posts

There are a few things you can do it depends on what you need exactly but here are your options:

 

If you need to leave it open for a brief time you can just put a wait using the wait command.

 

If you need to leave it open forever and don't care about your script running further you can use a loop while true and put a wait (one second) in there and it will loop forever.

 

If you need your script to continue execution then you can do the above but put it inside of a thread. Just keep in mind if you need more browsers doing this it will quickly build up RAM.

Link to post
Share on other sites

hi friend i want dont close :)

i have loop and in the loop i have 3 (in new browser) and i want close browser's in End of the loop

There are a few things you can do it depends on what you need exactly but here are your options:

 

If you need to leave it open for a brief time you can just put a wait using the wait command.

 

If you need to leave it open forever and don't care about your script running further you can use a loop while true and put a wait (one second) in there and it will loop forever.

 

If you need your script to continue execution then you can do the above but put it inside of a thread. Just keep in mind if you need more browsers doing this it will quickly build up RAM.

hi friend i want dont close :)

i have loop and in the loop i have 3 (in new browser) and i want close browser's in End of the loop

Link to post
Share on other sites

Can you post the code you have and say if you want to close the windows or not.

set(#i,1,"Global")
loop(700) {
    in new browser {
        allow images("No")
        create table from file("C:\\lb.csv",&test)
        navigate($table cell(&test,#i,2),"Wait")
          set(#mojodb,$replace regular expression($scrape attribute($element offset(<class="state text-success">,0),"innertext"),"\\s",$nothing),"Global")
        set(#model,$table cell(&test,#i,0),"Global")
        .
.
.
.
.

    }
    in new browser {
        navigate("!!!!!","Wait")
        wait for element($element offset(<login button>,0),"","Appear")
        type text($element offset(<email field>,0),"!!!!","Standard")
        type text(<name="passwd">,"!!!","Standard")
        change checkbox(<name="stay_logged_in">,"Checked")
    .
    .
    .
    .
    .
    .
    .
    }
    set(#price,0,"Global")
    increment(#i)
}

hi mr tnq for answer

I want this new browser to stay open and not close until the rotation of the loop, the code is red, is it possible the whole new browsers  stay open and do not close the last line?

 

 

Link to post
Share on other sites

Hope this helps.

 

set(#infinite_loop,0,"Global")
set(#val,0,"Global")
loop while($comparison(#infinite_loop,"= Equals",0)) {
    YourCodeSystem(#RunSystemCode)
}
define YourCodeSystem(#RunSystemCode) {
    increment(#val)
    wait(0.01)
    if($comparison(#val,"= Equals",100)) {
        then {
            set(#infinite_loop,1,"Global")
        }
    }
}
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...