📜  如何在 python 代码示例中获取当前的谷歌标签

📅  最后修改于: 2022-03-11 14:45:53.340000             🧑  作者: Mango

代码示例1
from pywinauto import Application # import pywinauto
app = Application(backend='uia')
app.connect(title_re=".*Chrome.*")
element_name="Address and search bar"
dlg = app.top_window()

url = dlg.child_window(title=element_name, control_type="Edit").get_value() # get url from database
print(url)# print url
# -/\-/\-/\-/\-/\-/\-*** HAPPY CODING ***-/\-/\-/\-/\-/\-/\-/\-