怎么往header里面添加参数以及怎么往local storage里面添加变量 #165
Unanswered
ouqing0707
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
需要在框架里面实现如下截图的两步,采用seleniumwire来初始化一个浏览器对象
from seleniumwire import webdriver
context.driver = webdriver.Chrome(ChromeDriverManager().install(), options=options)
然后往driver中添加参数值:
第一步是在header里面加入请求参数x-request-account,透传到每一个http请求中。
第二步是在local storage里面新增一个变量GOOGLE_AUTH_TOKEN,存储的值为undefined。
想知道在框架中在里面添加呢?
Beta Was this translation helpful? Give feedback.
All reactions