I have used UIAutomation to try and get the visible text off google chrome,
however chrome doesnt allow IsTextPatternAvailable. If there a way that I can read the text off a chrome web page using C# that doesnt depend on apps like selenium and not using chrome extensions...
Related
I have a winforms application in which i need to show a pdf (which is in a public remote url) in the default internet web browser of the user's computer once user clicks on an about option in a menu.
The remote url for the pdf is something like below:
https://path/to/the/pdf/file/myfile.pdf
I have googled a lot and see tons of examples using WebClient (synchronous and asynchronous) and also HttpClient seems it looks like WebClient is already obsolete.
So I have found below ones:
How to download a file from a URL in C#?
View PDF File using Windows Form C# from Remote URL
and also other examples, but in this case for asp.net, not for winforms:
https://stackoverflow.com/a/57568568
https://stackoverflow.com/a/40774857
I am interested in showing the remote pdf file directly in the user default internet web browser inline without needing to download the pdf file before. So is it possible? and if so, how?
In the last two link that I have provided about asp.net (not winforms), i see that it is possible by setting the inline property to true for the Content-Disposition header in the response, but of course, it is for asp.net, not for winforms, so I don't know how I can do the same in my case using winforms.
I want to avoid download the pdf file. In all the winforms examples I find (see links provided above) it always says to download the pdf file first in the local computer and then show it. I am not able to find how to show it inline without downloading it.
Note: I am using .NET 4.5
I want to load pdf from Db and display in my site (Blazor). I tried to use embed/object/frame and it is working in Firefox, but not working in Google Chrome and Edge. Here is my file in JsFiddle:
https://jsfiddle.net/fhd30bko/
When I open this url in Firefox, it shows my file correctly, but it shows empty when I open in Google Chrome or Edge. Any ideas for this error?
Using a C#.net console application, is it possible to find a Chrome window with a specific Url in its address bar, open a new Chrome tab in that window and then Automating that tab? By automating, I will then load a specific URL and then do few clicks programmatically. I tried using Selenium Web driver, but it does everything else except identifying the Chrome window with a specific URL and opening a tab.
Is it possible to use CefSharp as 'Chrome'? I know, it is a kind of Chrome, but webpages doesn't see CefSharp as Chrome.
The story:
I want to embed WhatsApp Web with CefSharp, but Whatsapp says: Only Chrome supported. Are there any possibilities to 'fake' Chrome?
WhatsApp Web checks for browser capabilities. It fails when checking for navigator.getUserMedia. To enable WebRTC audio/video you need to set the --enable-media-stream flag. Set it programmatically through the CefSettings.CefCommandLineArgs option. For an example see CefSharp.Example/CefExample.cs.
I want to get the URL from all open tabs. I have searched on Google but could not find any luck. I want to read and log the URL from all open tab from Chrome And IE.
I am using C# windows form application.
Thanks in Advance..
Umang
I understand what you need to do but I would be surprised if IE and Chrome would expose the tabs and the urls in a simple and similar way to external applications, I think the way to go is to build a Chrome extension and an IE plugin or Addin to get those information while running within the browser scope, then you can send this info to an external application or to a web service etc... you will find a way to get the info out once you have got this url list inside your own code running with the browser.
see here for some starting point / ideas
Chrome extensions:
http://code.google.com/chrome/extensions/index.html
IE development:
http://msdn.microsoft.com/en-us/library/bb250436(VS.85).aspx