DrissionPage icon indicating copy to clipboard operation
DrissionPage copied to clipboard

How to open 2 webpage at the same time

Open y1ck3z opened this issue 1 year ago • 1 comments

Dear Sir or Madam,

I have to do some work that requires me to open 2 webpage at the same time, and therefore I use the code below in the same script. But it does not work, and I always get the only 1 page, the page 2. Kindly looking forward to your reply and your help. Thank you!

p1 = WebPage()
p2 = WebPage()
p1.get('p1 url')
p2.get('p2 url')

....then the code try to do some action in both 2 webpages (but all these action will not happen at the same time....

y1ck3z avatar Aug 27 '24 18:08 y1ck3z

Hi Guys,

I was careless. I just found that there is 'Tab' I can use to solve the problem 😆

ghost avatar Aug 27 '24 18:08 ghost

Hey, I was trying to do the same thing! I want to run multiple scripts written in the DrissionPage framework simultaneously, but the problem is that all actions are happening in one browser session, which is not what I want.

AmineSlimani avatar Sep 10 '24 13:09 AmineSlimani

Hey, I was trying to do the same thing! I want to run multiple scripts written in the DrissionPage framework simultaneously, but the problem is that all actions are happening in one browser session, which is not what I want.

Hi, have you already used the tab func? If so, the answer is you would open 2 tabs in the same browser....

ghost avatar Sep 11 '24 00:09 ghost