Webbrowser control stopped showing instagram - c#

I have windows forms app which has a webrowser control. I am using it to login to instagram. Until today it worked just fine. Today it started to give the script error and stuck at the splash screen.
To see if it is because I unknowingly did something on the project, I even created a brand new solution with a web browser and only changed its url to instagram and it gave the same error.
So that made me think two possibilities.
1- As in lots of questions, it is browser version emulation thing, which is solved by reg update. I tried all didnt work. And my webbrowser works in latest version anyway, as you can see in textbox on top right corner. but somehow maybe I didnt apply the solution correctly.
2- Instagram itself somehow detected webbrowser access and blocks me.
If anybody can help, it will be highly ağpprecaited.

Related

C# Selenium how to interact with chrome extension

I have successfully loaded my chrome profile with selenium that has pre-installed extensions.
The extension in question is called Private Internet Access, but i have tried others and cannot communicate with them
I am trying to figure out how i can open the extension below and enter username&password and click login button. I have tried finding the elements in by id and class but it doesnt find them. Can someone point me down the right line for this. Thanks
I've not had the ability to try this - however I've done a lot of work with Selenium and I've created my own chrome extension.
That extension popup in the top right actually a different web page. You won't be able to interact with it due to how it's presented, but you can navigate to it.
Try this:
Open up your extension, right click anywhere and select Inspect. This will open up devtools for the popup.
In devtools, go to the console and type document.url. This will give you the URL of that popup page. (you'll also see it at the top of the title bar)
That gibberish-looking bit in the middle doesn't change - it's your chrome extension identifier. From when I created my extension and 18 months worth of updates (including migrating from chrome extension manifest v2 to v3) it has not changed for me. I think you'll be safe to use it.
Go to that URL to make sure it works. In my case it's chrome-extension://ojhcleddagaoaplflbafhpekcciikdop/popup.html
You'll notice you'll lose some of the page styling compared to the popup. When you design the popup you give it fixed dimensions - when you open it as a normal webpage, you lose that and everything gets stretched.
Finally - for your automation - put that chrome-extension:\\ url as the first step in your selenium script and do your sign in. Then, carry on with the rest of your test.

Adding User Controls To Web Page in VB.Net Web App

I have followed the setup instructions at this link Adding Controls to a webpage
However, for the 2 weeks that I have been studying vb.net, I have yet to be able to add a drag and drop form or control element on the page as all options are grayed out...even while in design view. Is there a setting I am overlooking? It doesn't make any sense that there would be tutorials on how to do the exact thing I am trying to do, but for some reason, it does not allow me to do it on my setup. Please help!?
Ok...rookie mistake. I figured it out. I was still running and debugging the application. Must stop the application from running and then all form controls become "addable".
Hope this saves someone time.

WebBrowser Control not showing PDF anymore

Googled really much on this issue, but didnt find any related problems.
I wrote a Browser with WinForms and the webbrowser control and since a week ago the Browser is showing a little Icon on the top left corner with an "x" in it instead of PDF File on every Website.
Dont know why, cause it worked fine for a couple of months.
Also tried to change back to the IE9 Engine by setting the registry entries, cause i thought about some IE Updates. But didnt work.
Any suggestions?
Found the source of the problem. The trick is to build a x86 application. If you set any cpu or x64 platform in your build settings, this little box with the "x" will show up when you try to view PDFs.
But really dont know why this happens and why he can find addons from IE in the webbrowser control, cause i didnt use any one of them in my code and im also not using any dlls for this. And why IE is showing PDFs without Addons activated.
But its working again now.

How to pop a web browser from Silverlight OOB?

I want to pop a web browser popup window, with a given url, from Silverlight.
When running within the browser I use HtmlPage.Window.Invoke() to run a javascript and its window.open() in the host browser. Works fine.
But when I run out-of-browser (OOB) this technique obviously doesn't work. So, what to do?
Silverlight 4 has this new WebBrowser control for use when running OOB. It works fine, but I have only been able to run it in a child window within the silverlight application boundaries.
Then there is this hyperlink trick. Also works, but it creates a new tab in the current browser-instance. Not exactly what I want either.
Anything I have missed?
(Alternatively; is there a a way to make the hyperlink pop the url in the same browserinstance and tab every time? instead of creating new tabs.)
Bit of a long post this. Sorry about that and thank you for your patience.
The link you posted to creating a derived HyperlinkButton is the only one I know of. Maybe play around with different TargetName values to see which one works like you want? "_blank", "_new", etc... - one of them may be what you want.
The trouble is that different browsers (when set as the default browser) may do different things, so be sure to try this with IE, Firefox, on a Mac, ...

How to detect a rightclick in an application

my objective is to attach a context menu (vista and win7) whenever user right clicks a picture/file.
I've got the file portion down (ie, they right click on a file and my menu shows up) but I am having trouble understanding what I would need to do in terms of right clicking in firefox or ie .
I am trying to add a context menu whenever someone right clicks on an image file in IE or firefox. is that possible?
If you want to plug in to what happens inside the user's browser, you should probably write a browser extension to do that, instead of trying to hack up something awful that sort of does what you want maybe.
The best solution would be to develop a plug-in for the browser used by your user, whether it be for Internet Explorer, FireFox or Chrome etc..
Trying to create some sort of hack will only lead to a bad experience for your user so it's better to develop something that would work properly.
Here's a few links to get you going in the right direction:
Google Chrome: http://www.mattcutts.com/blog/write-chrome-extension/
Mozilla FireFox: https://developer.mozilla.org/en/Gecko_Plugin_API_Reference/Plug-in_Development_Overview
(I can't seem to find any for Internet Explorer)
I'm sorry i cannot give you a definitive answer but hopefully this should get the ball rolling for you at least.
is that possible?
NO
For Browsers: You need to develop an extension for each browser you want to support
For Desktop: http://www.codeproject.com/KB/cs/dateparser.aspx (ignore all the stupid istruction about how to catch the datetime )

Categories

Resources