Presentationrequest.start showing different UI compared to cast dialog in chrome - chromecast

I was using PresentationRequest.start Google API to launch Cast dialog.
After recent update PresentationRequest.start open chromecast dialog but UI is different as compared to chrome browser manually open cast dialog.
Sources selection button not showing now.
UI preview when used PresentationRequest.start
If anyone know why it is different? and how we can get same UI as cast dialog open in chrome browser manually? Is there any command line option is there to open cast dialog and cast desktop?

Related

How to select the device to cast from popup in capybara, selenium, Ruby in chrome

I am trying to select the first device from popup to cast using selenium, capybara but I am not able to do it. Please find the popup below
I have tried following and it does not seem to be working
popup = page.driver.browser.window_handles.last
page.driver.browser.switch_to.window(popup)
page.driver.browser.switch_to.alert.accept
page.driver.browser.switch_to.alert.dismiss
page.driver.browser.switch_to.alert.text
Please provide sugggestions!
You can't - that's a system dialog and selenium can't interact with it once opened. It MAY be possible to set a default to launch and prevent the dialog from opening via chrome command line switches but I'm afraid I don't know what that would be.

Handle Webpage dialog box in selenium

I am automating an web application through selenium, in that application on click of Search button a web page dialog box appears.
This dialog box is not identified by developer tool, developer tools still identifies parent window.
Driver.getwindowhandles is returning count of 1, which looks like the dialogbox is not a child window.
Tried Alert, frames, iframes but none them has identifed this dialog box.
Also this popup is not a window pop up.
Can someone please suggest how to handle this kind of webpage dialog box.
This is a nightly job, so i cannot use Robot class , AutoIT or sikuli because these require an active window session.

How to make the Web Bluetooth Pair button work when run as chrome app

I have a simple set of HTML and JS which when I test it directly as a web page, loaded locally from the file system in Chrome, works fine. I can click a button causing a call to navigator.bluetooth.requestDevice. This correctly causes the usual window to appear and it lists the expected Bluetooth peripheral. I can then select it and successfully pair, with my code receiving the expected callback.
If I try to execute the same html/js as a Chrome app, with a manifest and invoked from chrome://extensions the requestDevice window appears and lists the expected peripheral with the Pair button disabled. If I select the peripheral, the Pair button becomes enabled but if I click it, the window disappears into the background, behind Chrome and nothing else happens that I can see. My code receives no callback. It looks like the call was competely ignored.
What do I need to do to make this work within a Chrome app?
Thanks
Chrome Apps and Extensions should be able to use Web Bluetooth. This is a bug. I've filed chromium issue 751819.
As a work around, create the Chrome App window larger than the device chooser dialog that pops up.

unable to retrieve overlayicons for dialog box window in my visual studio application

I'm trying to display overlay icons on specific set of files in explorer window.
I have written shellextensionhandler class which has ismemberof(),getoverlayinfo() and getpriority() functions and it works fine if I open a new window in explorer, all these APIs are getting hit and overlay icons are getting displayed.
However, if I try to open a dialog box from any application, none of these APIs are getting hit and hence overlay icons are not getting set for files inside dialog box. And also I have observed that if I open dialog box it is not showing under explorer app (probably because of that reason since it is not treated as explorer window, for dialog box these APIs are not getting hit). Could anyone please provide solution on how to implement this?
The problem is with our code, where we are ignoring dialog boxes. Thanks Denis for helping. As Denis mentioned handler works correctly in Explorer if it is installed properly.

Any way to programmatically force IE8 to open popups in a new window instead of a tab?

Is there a way to programmatically instruct IE8 to open a popup in a new window rather than a new tab? I know that IE supports modal windows but I have a bunch of legacy code with ordinary popups.
Update:
I am using Javascript's window.open() method to create popup windows. However, when a user has their IE8 settings set to "Always open popups in a new tab", the popup is launched in a new tab rather than a new window.
Using html, the best you can do is set open page target to blank. Everything else is controlled by the client side and they can choose to open it in a new window or tab.
However, you can use javascript to open the window. Create Link to open in new window here
Since no one else is chiming in... After doing further research, it seems that you cannot force a pop-up to open into a new window when an IE8 user has the following browser setting enabled: Tools>>Internet Options>>Tabs>>When a pop-up is encountered:>>Always open pop-ups in a new tab.
Since I am in an Intranet environment, I have the option of locking down a users IE settings to either "Let Internet Explorer decide how pop-ups should open" or "Always open pop-ups in a new window".
I don't really care to exercise the above option so in order to get the desired user experience, I will resort to making one of the following code changes:
Convert existing pop-ups to IE specific Modal Dialogs using the showModalDialog() method.
Convert existing pop-ups to Javascript Modal Dialogs using jqModal or some other jQuery plug-in.
If you opt to let Internet Explorer decide how to display pop-ups, it
will display the pop-up in a new window if the pop-up specifies size
or display requirements. Otherwise, the pop-up is displayed in a new
tab.
http://windows.microsoft.com/en-US/windows-vista/Tabbed-browsing-in-Internet-Explorer-8-frequently-asked-questions
So if you don't set any specific window requirements and it should open in a new tab, unless a user has changed these settings.

Resources