简体   繁体   English

通过监视Selenium Webdriver中的网络流量来捕获Post参数

[英]Capturing Post parameters by monitoring network traffic in Selenium Webdriver

I havebeen recently trying things to capture network traffic in my Selenium WebDriver tests. 我最近在Selenium WebDriver测试中尝试尝试捕获网络流量。

I tried: Firebug+NetExport :NetExport is not supported for my FF41. 我尝试过:FF41不支持Firebug + NetExport :NetExport。

BrowserMobProx y:Post data is captured but i guess it is encoded. BrowserMobProx y:捕获了发布数据,但我想它已经编码了。

Har Export Trigger : Again i am getting Post data as encoded. Har Export Trigger :再次,我得到了编码后的数据。

The post url which i need to capture looks like this: "mysite.com//xyz/index.cfm?&did=someData&id=1234"(https is being used) 我需要捕获的帖子网址看起来像这样:“ mysite.com//xyz/index.cfm?&did=someData&id=1234”(正在使用https)

I am totally exhausted with the results. 我对结果完全精疲力尽。 Is there a way by which i can capture the post request url along with parameters? 有没有一种方法可以捕获发布请求网址以及参数? Pls suggest on this. 请对此提出建议。 Thanks In Advance. 提前致谢。

Form data will indeed be encoded, presumably as multipart/form-data , but it certainly can be decoded. 表单数据确实会被编码,大概是multipart/form-data ,但是当然可以解码。 It's a bit harder work if you're not inside a web container, but the code exists. 如果您不在Web容器中,但是代码存在,则工作会有些困难。

Here are some links that should help you: 以下是一些可以帮助您的链接:

Although I haven't investigated how BrowserMob could help you directly, having not needed/used this myself, if you look at the source there clearly is some support. 尽管我还没有研究BrowserMob如何直接为您提供帮助,但我本人并不需要/使用它,但是如果您查看源代码 ,显然可以找到支持。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM