how to see browser plug-in logs in hp webos? - webos

I have developed a plug-in with the help of "NPAPI" approach, and i have able to launch it in browser of "webos" emulator. When i launch a test html page using tomcat server that page is loading fine and able to access browser plug-in.
I have added some "printf" statement. I tried log command in putty to see the browser logs and it is displaying browser logs but that logs doesn't contain plug-in logs.
please give me some suggestion.
thanks

Printf isn't the right way to log stuff. I believe what you want to do is to use the syslog() function. You might find something useful here:
https://developer.palm.com/content/resources/develop/pdk_app_debugging.html
You could also open a file in /media/internal/ and write to that.

Related

how to change browser preference in parasoft?

I am new to parasoft and trying to test some web UI functionality. I have used chrome to record the web session and it is working fine when run with chrome. But now I want to test the same on Firefox, but I am not getting any option to make it run on firefox. It always opens in chrome only.
So please, if anyone is aware of changing the browser preference to playback would be appreciated.
as the test case is bit big, I don't want to re-record using Firefox.
Thanks.
To change browser which you want to use during test, you should go to Test Configuration and select appropriate test configuration used to execute test.
Then in Execution view select browser which you want to use.Other option is to use built test configuration with selected browser already.

autodownload script firefox PHP or JS or Any other

I have created the auto download script of images(JPG,PNG etc) and it is working fine in all browser except the firefox(latest version).
In firefox, before download start the browser is opening the popup asking open with or save file.
Kindly give me direction to save the file automatically using PHP or JS or htaccess etc in firefox.
See the URL as below
http://maples-web-services.com/autodownload/index.php
Many Thanks!!
I am sorry to tell you this. I googled and got the possibility for your problem.
In chrome we don't have 'open with' feature. But in Firefox we have such. So this link Firefox issue will gives you some information..
It is the addons which are causing problem. Try using Safe mode in FF:
Go to Help -> Restart with Addons disabled
and then try it. If the problem is not persisting then it the addon which is causing problem. To identify the 'con' addon, check them by turning them on one by one.

console.log not showing in my firebug

In jsfiddle.net, I have this simple code:
console.log('yep');
alert('hello');
I can see the alert window but nothing in my firebug console.
Is there a reason why ?
I'm encountering it as well on my FF15.
In my case, it is caused by the built-in "web console" in "web developer"
Ctrl+Shift+K
https://developer.mozilla.org/en-US/docs/Tools/Web_Console
Beginning with Firefox 4, the old Error Console has been deprecated in favor of the new, improved Web Console. The Web Console is something of a heads-up display for the web, letting you view error messages and other logged information. In addition, there are methods you can call to output information to the console, making it a useful debugging aid, and you can evaluate JavaScript on the fly.
I'm new to using console.log (I used to use alert()s) and was wondering why I couldn't see console.log messages in Firebug too.
After a several minutes of web searching I realised the console mode was set to 'Debug Info'. Clicking the 'All' button made all my messages appear.
The OP didn't make this particular mistake, admittedly. It's a rookie error, but still non-obvious enough (I haven't used Firebug for a while) to bring me here before I managed to figure it out.
This issue has been fixed in Firebug 1.11.0a5. More info is here
I just had the same issue with firefox 29 Beta (and Australis) Just restart the browser :)
EDIT : seems like its it's not true : on the first page load, it display the log, on the others not (need to open the page in a new tab). Apparently it's queryLoader2 jQuery plugin

Need Firefox plug-in to show POSTed variables

I need to find out what variables and values are being POSTed to a script that I'm debugging. It's doing something strange to them, and it needs to start a session so I can't ouput them right at the beginning. I'm hoping to find a plug-in for Firefox that will show me what they are directly from the browser. Does anyone know of such a thing?
Use Firebug. It's awesome.
The Net panel shows you what's going on over HTTP.
Live HTTP Headers
Let's you see every request, edit it and replay it. Excelent plugin and easy to use...
Firebug does that perfectly :)
install Firebug
open the network tab
Fiddler has such a plugin and it is also just a good HTTP debugger in general
LiveHTTPHeaders is an oldie but a goodie

Firefox Live DOM

Is it possible through a plugin or setting or something to allow Firefox to recognize the live DOM source code?
Basically, firebug or other similar tools can recognize elements on the page which Firefox does not.
I understand with these extensions I have the ability to see such changes made by javascript, but Firefox does not seem to fully recognize them.
I'll try to clarify.
If I load a page and view source (ctrl-U), I see what the server sent to Firefox, and what Firefox ostensibly recognizes as the source code of the page. If in that source code, there is javascript which alters the DOM, and then I hit (ctrl-U) again, the code is not updated.
I am using a testing tool (iMacros firefox plugin) to automate functionality, but it does not recognize the updated DOM because Firefox does not. Firebug and similar tools can recognize these "live" updates. Does that help?
http://www.chapter31.com/2006/12/04/viewing-ajax-generated-source-code/
You can try using the web-developer extension with a view-generated-source option.
I'm still not sure I understand your question, but I think what you're getting at is the Web Developer extension for FireFox, specifically its "View Generated Source" feature.
That will let you see the altered DOM.
Firebug gives u this ability:
for instance check the HTML tab when running a jquery ticker and see the dynamic changes live in the DOM
Usually, when I have weird issues with either the console or the DOM inspector with firebug, I find restarting the browser and validating your code is the way forward.
That said, I'm not really following your question, the document that firebug shows is the same one in the firefox window...?
It looks like the problem is not that you want firefox to show the current DOM when you hit CTRL+U, but that you want some automated testing tool to be able to test your web pages.
Perhaps you should use a testing tool that is suited to the job of testing rich web applications, Selenium, for example, can do this.

Resources