browser-plugin

Browser Plugin Testing With Selenium

 ̄綄美尐妖づ 提交于 2019-11-26 22:40:28
问题 I am writing a webapp that has a browser plugin component for both firefox and chrome. My current testing system uses a series of Selenium tests created through Selenium IDE. Is it possible to also have selenium install, activate, and delete browser plugins for firefox and chrome (possibly other browsers as well)? I think the biggest concern is that installing/enabling the browser plugin requires a browser restart, and I'm not sure if that would through selenium off. The acquisition of the

How to embed a document in HTML page?

随声附和 提交于 2019-11-26 11:24:00
问题 We would like to show the document (e.g. pptx , xlsx , docx , pdf , html ) in a html page after retrieving it from the database via a servlet\'s doGet method. Can anyone share some snippets on how to achieve this? 回答1: Non-html content apart from images needs to be retrieved using an object, embed or iframe tag iframe : <iframe src="somepage.pdf"></iframe> object/embed : <object src="somepage.pdf"><embed src="somepage.pdf"></embed></object> somepage.pdf could be somepage.jsp?filename=somepage

How to write a browser plugin?

南楼画角 提交于 2019-11-26 11:13:05
I'm curious as to the procedure for writing browser plugins for browsers like Chrome, Safari, and Opera. I'm thinking specifically of Windows here and would prefer working with C++. Are there any tools or tutorials that detail the process? Note : I am not referring to extensions or 'addons'. I'm referring to a plugin similar to how Flash and Adobe Reader have plugins to handle specific content-types. As others point out, plugins for those browser are written using the NPAPI . Note: Both Firefox and Chrome will default most plugins to click-to-play soon , with Chrome planning to phase out NPAPI