3

私は現在、会社でプロセスを自動化しようとしています(私はインターンです)。これまでに次のことを行いました。

import webbrowser

command_center_url = 'http://docs.python.org/'

# MacOS
chrome_path = 'open -a /Applications/Google\ Chrome.app %s'

# Windows
# chrome_path = 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe %s'

# Linux
# chrome_path = '/usr/bin/google-chrome %s'

webbrowser.get(chrome_path).open(command_center_url)
webbrowser.get(chrome_path).open_new_tab(command_center_url)
webbrowser.get(chrome_path).open_new_tab(command_center_url)
webbrowser.get(chrome_path).open_new_tab(command_center_url)
webbrowser.get(chrome_path).open_new_tab(command_center_url)
webbrowser.get(chrome_path).open_new_tab(command_center_url)
webbrowser.get(chrome_path).open_new_tab(command_center_url)
webbrowser.get(chrome_path).open_new_tab(command_center_url)
webbrowser.get(chrome_path).open_new_tab(command_center_url)

ここで、これを複数の画面にまたがって再配置する Chrome の特定のプラグインを検出したいと考えています。今後の進め方を教えてください。助けてくれてありがとう。

編集: より多くの回答を求めて Web をスキャンすると、Selium が最善の策であることがわかりました。ただし、ご想像のとおり、セキュリティ上の制限により、外部パッケージ (webdriver) を読み込むことができません。これを「昔ながらの方法」で行う方法はありますか?

4

0 に答える 0