python - Intercepting and accessing intermediate Json's hit response in python playwright
问题描述
I am trying to get response for an intermediate json's page to extract some information from it,but I am always getting "Timeout while waiting for event "response" error in return.Code sample is as given below
''' with page.expect_response(lambda response: response.url == "host_url"+"/admininfo") as response_info:
page.click(search_button_xpath)
print(response_info.value.body())
print(response_info.body())'''
I also tried page.route but no success.
解决方案
推荐阅读
- arrays - 不使用 IML 重塑 SAS 表
- ios - UIContextMenu 和 UITableView 问题
- angular - 数据表行在更改角度排序顺序时被隐藏
- django - Gitlab runner 删除服务器上的一些文件/文件夹
- java - 在 Spring、Spock 和 Groovy 的测试中注入 @Value 失败
- python - 如何为 Postgresql 自动授权客户端?
- python - 您如何计算时间序列数据中的累积中位数?
- javascript - 如果列表包含任何元素,如何签入javascript?
- postgresql - 客户数据访问
- java - 为什么在 Windows 10 上为一个 Java 程序运行 2 个 Java 平台二进制文件?