When I use npapi to develop a textinput,How to submit it? - browser

When I use npapi to develop a textinput to be a part of form,when I click submit button,How to submit the value of textinput developed by npapi?

Related

Call "Select an element" from a sidebar button

I am developing a Google Chrome Extension for UI Web Testing. And I need to call the native Chrome selector of elements, which You can invoke by CtrlShiftC or via the toolbar:
But I want to call it after click on my button which located in the elements sidebar:
How can I do that from a javascript click event of a button?
There's no way to invoke the built-in element selector from within the extension. Well, except the weird method of writing a separately installable native OS application that communicates with your extension via nativeMessaging API and sends a click event to the toolbar or triggers the hotkey.
A workable solution though is to use a 3rd-party JavaScript library that imitates the element selector behavior and once the element is selected you can highlight it in the Elements panel.

Desktop gadet/app for Windows

I want to make a desktop gadget like the Sticky notes that we have but just with some additional functionality.
Now that the gadgets have been discontinued in windows, i am not sure about what technology to use to create this app.
I want to create a custom UI like just a Add button on the side of the desktop and clicking on it would create notes.
I was trying to use node-webkit but seems that will appear like a web page and not what I want. Can anyone tell me what should i use to achieve the result.
A Node Webkit window doesn't have to look like a webpage. You can use a frameless window and then design the UI to look however you want with HTML and CSS.
Frameless Window

Issue in selecting 'Add' / 'Cancel' through Selenium Webdriver on Chrome extension dialog

I was trying to automate the process of adding Chrome extension through Selenium Webdriver. There comes a dialog that asks user to click 'Add' to add extension. I am facing issue in this part.
Here are the things that I've tried but did not work :
Trying to treat it as 'Alert' and accepting it.
Trying to get its properties but as it is not part of web page we can not see its properties. its chrome's in-build dialog.
Keyboard simulator (hitting Enter)
I know we can use AutoIt but don't want to integrate it with framework just for single issue. Is there any other way you folks can suggest. One workaround that I an thinking if we can get a global keyboard shortcut to select 'Add' on the chrome extension dialog.

Primefaces interface test on pc?

I am developing a web application with a mobile interface using JSF/Primefaces and I want to test the change from one view to another but the only view that appears is the first one.
How to make it work on PC?
If you use Mozilla Firefox you can download a plugin called User Agent Switcher. There you go to tools -> Default user Agent -> By default it shows Iphone 3.0, but you can download more agents to render different browser views.
You can learn some about the User Agents here

Modal Dialog in Google Chrome Extension

I need a truly modal dialog to run in Google Chrome in Windows using extension, where the dialog doesn't allow users to click on other tabs etc. The search results so far seem to suggest that showModalDialog() doesn't give a true modal dialog, and the jQuery examples (like SimpleModal) don't seem to be able to stop users from accessing the other tabs or the other parts of the browser.
Alerts seem to be be working, so I was wondering if there is any other solution to this problem? Or do I really need to write a modal dialog from scratch using Javascript?
Using the hidden div methods in the web pages is not an option because I can't modify them.
You can simply use the native javascript function confirm
But I don't like when I can't do what I want without good reasons.
Furthermore, the user will can always switch to another Chrome window.
No sort of in tab HTML modal dialog will prevent a user from switching tabs. Even alert will allow users to switch tabs. You may be able to achieve this through a NPAPI plugin though.

Resources