DrissionPage
DrissionPage copied to clipboard
How to open 2 webpage at the same time
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....
Hi Guys,
I was careless. I just found that there is 'Tab' I can use to solve the problem 😆
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.
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....