Excel VBA selenium: 填写用户名和密码

huangapple go评论85阅读模式
英文:

excel VBA selenium: fill in user and password

问题

I am developing an Excel application to connect to a data provider.

Is it possible to fill in the username and password fields with the data previously saved in the browser (Edge) without having to define the username and password in the VBA code?

Thanks in advance.

英文:

I am developing an Excel application to connect to a data provider.

Is it possible to fill in the username and password fields with the data previously saved in the browser (Edge) without having to define the username and password in the VBA code?

Thanks in advance.

答案1

得分: 1

我了解, Selenium默认会创建一个新的匿名浏览器会话。如果你想使用当前会话中保存的密码,你需要在现有浏览器中打开一个标签页。

你可以参考这个问题开始学习:
https://stackoverflow.com/questions/8344776/can-selenium-interact-with-an-existing-browser-session

英文:

AFAIK, by default, Selenium will create a new anonymous session of your browser. If you want to use the saved passwords from your current session, you'd need to open a tab in an existing browser.

Knowing that, you can have a look at this question to get started:
https://stackoverflow.com/questions/8344776/can-selenium-interact-with-an-existing-browser-session

huangapple
  • 本文由 发表于 2023年4月13日 18:42:59
  • 转载请务必保留本文链接:https://go.coder-hub.com/76004497.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定