![]() There are actually two directories in Chrome one for NPAPI Flash (the old technology that is going away in Chrome 45) and one for Pepper Flash (the new technology). Then you have to upload this file to the correct directory, which you may have to create, and that directory is specific to the host name. Not the 'specified in the name that must be the host name that is requesting permission. It works something like this: from pyamf import sol That file is in AMF format, and I use the Python PyAMF library to generate it. The Flash permissions you need are stored in a file called 'settings.sol', in a directory specific to the host you are accessing. I solved this problem by generating the required Flash permissions file, and uploading it to the appropriate directory, so that Flash is satisfied. So the standard Chrome hacks (e.g., -use-fake-ui-for-media-stream) will not work here. This is not Chrome prompting for permission it is Flash. This is the current workaround, but creates some extra overhead for anyĭevs who want to run the tests, and the programmer in me says it isn't kosher forĪn automated test to require human interaction. Time hitting the dialog and clicking "Allow" and "Remember", the security settings areĪny more. I used the Chrome flag "user-data-dir=/a/random/path" so that after the first mouseMove(element(by.css('object#flashRecorder')), x, y)Īnd even though I'm a crack-shot and I'm pretty sure I nailed the button'sĬoordinates (used some javascript coordinate tracing to be sure), nothing happened. 'use-fake-device-for-media-stream', 'use-fake-ui-for-media-stream',Īnd 'disable-bundled-ppapi-flash'. I set up the Protractor config file to run Chrome with the options Settings, so the Settings box pops up anyway. Temporary profile on Chrome, which doesn't know about those security But every time WebDriver runs, it creates a I visited my site-specific Flash security settings to allow accessįor the webapp. Protractor gets hung here, because it doesn't seem to know how to click the "Allow" button and the app won't let it continue until it does. ![]() The HTML for this dialog looks like this: Īnd the dialog box itself looks like this: Of course, the first time anyone uses the app, Flash pops up a dialog box to ask for permission to use the webcam and mic. ![]() My Protractor suite is running on a webapp that uses Flash to capture camera and microphone.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |