I'm getting some great help from the community today and hoping someone can put me in the right direction on this little one.
I have a loop going where I am trying to load up a number of different web pages but at the moment the same web page is opening in a different window.
How can I open them in separate displays? And is there a way to label the display?
for d in data["screen"]:
screen_list["code"]))
display = Display(visible=1, size=(800, 600))
display.start()
driver = webdriver.Chrome()
driver.get("https://" + d["server"] + "/test/")
Edited
Trying to improve the answer, I've written a quick script to try to load up two different displays showing to different web pages but it loads up both webpages in the same window
import sys
import os
from selenium import webdriver
from pyvirtualdisplay import Display
from selenium.webdriver.common.keys import Keys
display = Display(visible=1, size=(800, 600))
display.start()
driver = webdriver.Chrome()
driver.get("https://news.bbc.co.uk")
display2 = Display(visible=1, size=(800, 600))
display2.start()
driver2 = webdriver.Chrome()
driver2.get("https://www.google.com")
Edited
I think the issue is that the script opens up one xephyr session on a port then the chrome driver will only talk to that session, so can you open multiple xephyr sessions for each driver.get("")
request?