mosayeb256 0 Posted February 14, 2018 Report Share Posted February 14, 2018 HI FREINDSI want to open a new browser And when end action , The browser does not closeDoes it have a solution?tnq Quote Link to post Share on other sites
HelloInsomnia 1103 Posted February 14, 2018 Report Share Posted February 14, 2018 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. Quote Link to post Share on other sites
pash 504 Posted February 15, 2018 Report Share Posted February 15, 2018 tryhttp://wiki.ubotstudio.com/wiki/Close_Page Quote Link to post Share on other sites
mosayeb256 0 Posted February 15, 2018 Author Report Share Posted February 15, 2018 tryhttp://wiki.ubotstudio.com/wiki/Close_Pagehi 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 loopThere 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 Quote Link to post Share on other sites
HelloInsomnia 1103 Posted February 17, 2018 Report Share Posted February 17, 2018 Can you post the code you have and say if you want to close the windows or not. Quote Link to post Share on other sites
mosayeb256 0 Posted February 25, 2018 Author Report Share Posted February 25, 2018 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 answerI 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? Quote Link to post Share on other sites
giganut 109 Posted February 28, 2018 Report Share Posted February 28, 2018 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") } } } Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.