'Open Chrome url in open tab with Python

I have to bring to front a Chrome tab (already open) with code.

More precisely, I have a tab (with its url) open in a Chrome browser (in kiosk mode) and, when the tab is in background, I want to bring it to front by means of a Chrome shortcut, an execuble file or a script.

The tab brought to front must be the same that was in background, and with the same url.

Can I do this with Python or by means of a Chrome shortcut, configuring its properties?



Solution 1:[1]

#Open google in python - Windows.
import webbrowser
url='https://google.com'
webbrowser.get('C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s').open(url)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Chris