Google chrome 如何在多个chrome实例上打开相同的url
我想知道如何通过单击或粘贴URL在所有chrome实例上同时打开相同的URL,是否可以运行创建脚本或其他任何可能性Google chrome 如何在多个chrome实例上打开相同的url,google-chrome,url,google-chrome-devtools,multiple-instances,Google Chrome,Url,Google Chrome Devtools,Multiple Instances,我想知道如何通过单击或粘贴URL在所有chrome实例上同时打开相同的URL,是否可以运行创建脚本或其他任何可能性 { "urls": [ "http://www.stackoverflow.com" ] } 例如:我有10个chrome实例,我想打开(xyz.com) 只需单击或粘贴 网址 希望我清楚我想解决的问题。是的,这是可能的。使用Web驱动程序/Selenium,可以使用任何您喜欢的语言,例如Python或Java。根据需要打开尽可能多的实例,并在每个实例中随意使用相
{
"urls": [
"http://www.stackoverflow.com"
]
}
例如:我有10个chrome实例,我想打开(xyz.com)
只需单击或粘贴
网址
希望我清楚我想解决的问题。是的,这是可能的。使用Web驱动程序/Selenium,可以使用任何您喜欢的语言,例如Python或Java。根据需要打开尽可能多的实例,并在每个实例中随意使用相同的URL。这帮了我的忙:D
import webbrowser
url = 'http://google.com/'
webbrowser.get(chrome_path).open(url)
for i in range(1, 6):
chrome_path1 = 'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe --profile-directory="Profile '+str(i)+'" %s'
webbrowser.get(chrome_path1).open(url)
谢谢,也许我很快就会使用Web驱动程序来自动化这些东西。我以前不知道这件事。谢谢你的时间和知识。谢谢@mentalurg,这对我有很大帮助。