Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

I need to know if an application is requesting one beacon via an image or XHR request.

Manually I test it via the network tab in FireBug or monitoring the proxied requests in other browsers...

Searching I see several references to captureNetworkTraffic but none of my Selenium instances have this command.

I'm using the Firefox IDE 1.9.1 and Stand Alone server 2.25.0.

What should I be using to have that captureNetworkTraffic command available? Also, where is it officially documented?

share|improve this question
    
Can you explain what you mean by "one beacon"? –  user246 Oct 29 '12 at 18:29
    
add comment

2 Answers

up vote 1 down vote accepted

See this previous thread for an explanation - seems you wont find it officially documented as it is not official...

share|improve this answer
    
thanks... i still get totally confused by what "is" selenium... there's too many flavours and versions. –  gcb Oct 29 '12 at 18:26
add comment

That feature is only available to Selenium RC (language bindings). It is not available in the IDE, nor Selenium 2 / WebDriver. For RC, it is known to be available for Python and Java, I believe it's there for the other languages as well.

Here's one open source project that actually makes use of it for performance profiling, that you can perhaps make use of, but will have to know/learn some coding.

http://code.google.com/p/selenium-profiler/

And, in terms of RC, I'm not sure if the latest server versions of Selenium v2.25 as mentioned, etc. support it when used with RC clients, so if not, you might have to go with old Selenium v1.x server releases to be able to use it.

Here's some more details on using it in code:

http://blog.eviltester.com/2010/05/a-selenium-capturenetworktraffic-example-in-java.html

http://code.google.com/p/selenium-profiler/source/browse/trunk/web_profiler.py

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.