firebug

How to drive Firebug from Selenium WebDriver

老子叫甜甜 提交于 2019-11-30 04:24:39
问题 I would like to capture the Net panel output from Firebug while running a test through WebDriver. I was thinking of doing this using NetExport to dump the info to a har file. How can I activate Firebug to do the export while a particular page is displayed using "driver.get()"? 回答1: You need the Firestarter extension in addition to Firebug and NetExport. Here's how I do it in Ruby: profile = Selenium::WebDriver::Firefox::Profile.new profile.add_extension "path/to/firebug.xpi" profile.add

firebug returns syntax error in doctype?

只愿长相守 提交于 2019-11-30 04:17:32
Why does Firebug return an error in my doctype? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> error syntax error <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" source code <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> ..... This usually happens because you are loading an HTML document as a script. This is often caused by <script src=""></script> (i.e. a relative URI pointing at the current, HTML, document)) or one of the scripts pointing to a 404 error. DOCTYPE normally is expressed on

What's the trick to inspect popout / dropdown menu style with Firebug?

房东的猫 提交于 2019-11-30 03:50:29
问题 Is there a way to make a popout menu 'stick' when inspecting with Firebug. You can do it with Chrome, but I prefer firebug. It's hard to set padding or a margin when you can't see the element you are styling. I did some research but couldn't figure it out. 回答1: There's an option built in: Inspect the element that's "hidden", then use this. 回答2: You can show/hide them using JS console, directly using show() or binding an event(mouseover, click etc). 来源: https://stackoverflow.com/questions

.attr(“disabled”, “disabled”) issue

浪子不回头ぞ 提交于 2019-11-30 03:05:34
I have this function toggles the disabled attribute form a input field: $('.someElement').click(function(){ if (someCondition) { console.log($target.prev('input')) // gives out the right object $target.toggleClass('open').prev('input').attr('disabled', 'disabled'); }else{ $target.toggleClass('open').prev('input').removeAttr('disabled'); //this works } }) the removeAttr works fine but when i need to add the disabled again it does just nothing. My console.log is triggered (and giving me back the right input field) so I'm sure that my if statement works. But when I inspect the DOM with firebug in

What exactly is the 'Waiting for response' msg on Firebug's Net tab?

心不动则不痛 提交于 2019-11-30 03:04:12
As sou can see from the screenshot most of the time spent is waiting for a server response (thats the purple coloured area). What exactly is that server response time? Is the server too slow? Is my connection too slow? Can't the server process much information at once (I've got many files there, I know I'll combine them to fewer)? What do I have to do to minimise that waiting time? PS. all the data are on the same server but I'm using subdomains so that the browser can process more files at once. This article is quite nice about features of firebug : Introduction to Firebug: Net Panel

How to get Javascript function's source code from specific site using firebug?

别来无恙 提交于 2019-11-30 01:22:51
With firebug I found that clicking on the link calls javascript function <a href="#" onclick="viewHide(this);return false;"> But I couldn't find it's implementation in page source. Is it possible to get it? The site is in hebrew, but I don't think it's problem : link text to trigger for this function click on any comments title that follow the article. removed dead ImageShack link Eldar Djafarov Just write in console: viewHide.toString() You will get a source code of function as a text. You can also put ViewHide under the Name column of the watch panel on the Script tab. When you press enter

Viewing HTML response from Ajax call through Chrome Developer tools?

不想你离开。 提交于 2019-11-30 00:45:15
问题 So in my javascript I'm making an ajax call to a service on my website. Whoops, something fails. No problem. Here's what I'd do in Firefox: Open the firebug console Find the failed Ajax call and click the + sign to see more info. The response tab has the raw HTML. Who wants to read all that? I click the HTML tab. Ah, the nicely formatted HTML returned by Django shows my divide by zero error. Now here's what I currently do in Chrome: Ctrl+Shift+J to open the Developer Tools Go to Resources

Find js function with firebug

只谈情不闲聊 提交于 2019-11-29 23:06:14
I have the following button: <input type="submit" id="btnLogin" onclick="return ValidateLogin();" value="Enter"> How can i find the definition of the ValidateLogin() function with firebug? Type the following into the Firebug Console, then click the function() in the output window var s = ValidateLogin.prototype.constructor; console.log(s); // will output the actual function definition I have included some screenshots to help. To get the function definition only this would be a shortcut in the firebug console: console.log(ValidateLogin.toString()); The defintion of the function will be printed

How do I find what Javascript is running on certain events?

百般思念 提交于 2019-11-29 23:01:43
I'll pick Chrome for this example, but I'm open to a solution from any browser. Use Case: I have an update button on my website that is used to update item quantities in a shopping cart. I'd like to allow a user to enter a 0 and click update in order to remove the item. Trouble is, there is some listener in some js function that is denying the ability to enter a 0 and click update (after clicking update the old quantity remains). My question is, what developer tool can I use to find which js function is running during that event? I don't think that Chrome's inspector does this, and I'm not

Interacting with require.js modules from the Firebug/Chrome console?

孤街浪徒 提交于 2019-11-29 22:51:28
I'm just getting started with require.js. I have successfully wrapped jquery, some plugins, and a couple of my own modules. I'm trying to interact with my modules (or jquery) from Firebug (or Google Chrome's JS console), and I'm not having much luck. What is the correct way to access these modules from the console? Say we have module /app/scripts/methodsModule.js that returns a few methods: define({ someMethod: function() { // do stuff }, anotherMethod: function() { // do some more stuff } }); In our data-main file /app/scripts/main.js we have: require(['methodsModule'], function(methods) {