--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.
Last time I checked network traffic capture wasn’t available natively in webDriver so you would have to use webDriver backed selenium to get it working (when I say get it working bear in mind that network traffic capture only used to work in FireFox, so unless the code has been tweaked this is FireFox specific)
public static Selenium sel = new WebDriverBackedSelenium(<driver>, <siteHomePage>);
sel.captureNetworkTraffic("xml")
sel.open(<url>);
String trafficCaptured = sel.captureNetworkTraffic("xml")
WebDriver driverInstance = ((WebDriverBackedSelenium) sel).getUnderlyingWebDriver();
<driver> = driverInstance;
Where <driver> is your driver object
Every time you use captureNetworkTraffic it resets the buffer, hence why above I have used it before and after navigating to the page to ensure buffer is clear.
Regards
Mark
Strange…
What version are you using? I’m on 2.0b1 and it’s not showing as deprecated here (I’ve not updated to 2.0b2 yet). As for the exception try using just a:
sel.captureNetworkTraffic()
Does it still give you issues if you do that?
I’ll have to update to 2.0b2 and have a look…
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/0449b69c-efdb-45f3-a5fa-985300875c8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/My Technical Scribbings @ http://rationaleemotions.wordpress.com/
On Tue, Aug 16, 2016 at 12:06 PM, Venkata Prasad Reddy <bhumir...@gmail.com> wrote:
Hello All,I have requirement called capture the network data with browser(Chrome, PhantomJS and IE) using Selenium web driver. Do we have solution to capture network using selenium web driver, if so please provide the steps for the same.Thanks in advance.On Tuesday, 1 March 2011 11:23:48 UTC+5:30, Something Something wrote:Hello,
We have a webpage which, when served, hits a URL. I am trying to write a selenium testcase to check the value of this URL. In other words, when I use HTTPFox I can see that this URL is getting triggered when the webpage is served.
How do I do this in Selenium?
For example:
WebDriver driver = new FirefoxDriver();driver.get("http://www.xyz.com/server/pr?type=xxx&part=yyy");
This will trigger the URL. I would like to check the value of this URL.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/32a00819-4e38-4374-a088-7c297e5441b5%40googlegroups.com.