Open chrome browser with Selenium in VBA - excel

I've downloaded Selenium to automate some web browsing in VBA, and as excited as I am to use it, I cannot seem to get it up and running. I'm trying to open up a chrome browser to start navigating to pages and doing what I need to do but every time it opens up to a blank page with URL "data:," and I get an error "WebRequestError The underlying connection was closed: An unexpected error occured on a receive."
I've seen several tips for this type of thing searching around but in trying to implement them I've still not cleared anything up.
Things I've tried:
Downloaded SeleniumBasic-2.0.9.0
Downloaded Chromedriver 2.40
I think I'm supposed to put the chromedriver somewhere so I have it in the same folder as SeleniumBasic but I'm not sure if that's right.
I'd really like to get this up and running so I can play around with Selenium and get some automation going and I feel like this part should not be this hard so if I could get some help on getting past this stupid little barrier I would really appreciate it.

Related

How do I keep track of open websites on Windows 11 using python?

I want to make a program that keeps track of open websites on Google Chrome on Windows 11 using python. Are there any libraries that can help with this? Metadata such as Duration and When the tab was opened are things that would be preferred as well.
For example, say Google Chrome has these webpages open: YouTube, Gmail, and GitHub. When the script is run, I want the output to be: youtube.com, mail.google.com, and github.com with the corresponding duration and time tab was opened.
I have tried using libraries such as urllib, pyppeteer, requests and selenium however none of these really helped in what I was trying to achieve. Googling this does not help either. I'm looking for a library and/or any example code that would help me, and so that I can research further! Thank you :)

Creating a Chrome extension which closes blocked websites

I recently blocked quite a lot of ads across my entire network using AdGuard. Unfortunately, AdGuard does not prevent pop-up windows from opening. Although the advertising page is not called up, I get a popup which tells me that the requested page cannot be reached.
That's why I wanted to write a chrome extension that closes these popups automatically. Unfortunately, I fail to save the value of a checkbox in chrome.storage that is supposed to activate / deactivate the extension.
could someone help me here?
:EDIT
Okay i managed to store my value but now i'm running into the problem that i need to run a script when a page can't be loaded and i got no idea how i can do that. :S
Any Ideas? Is that even possible?

Python - Using a browser other than Chrome with webbot package

I am new to programming and my first task, which should be really simple, is to automate a proccess, where I log in in a website with my credentials, I click on some buttons and that is it. I am using Python 3.6 on windows 10.
I am trying to do it using the webbot module, which so far has come really handy but I have one big problem.
The standard browser for webbot is Google Chrome and thus the site always opens with Chrome. I need to open the site with Internet Explorer.
I have set IE as default browser, but nothing changed, Chrome would still open.
I deleted Chrome, but then when I would run the programm nothing would happen.
I checked the init.py file and the drivers folder of the module and I think that this module can only work with chrome.
Is it possible to use IE or does this mean that this package does not support this browser at all?
Which alternatives would you suggest?
Edit: If I am not mistaken Selenium does not support IE11 on windows 10, so that is not an option, unless I am mistaken.
Thanks in advance
There is no support for another browser other than Chrome (as far as the webbot module is concerned).

Live-server Visual Studio Code browser won't auto update

I'm pretty new to web developing and very new to VS code. I'm trying to use live-server to be able to get the html in the browser to update without having to refresh the browser. I can't get it to work and I have been googling and trying stuff out for 2 days. Can somebody help me while I still have some hairs left on my head?
Thank you!
/Joel
It's necessary to firsly save the file in which you are working(htmlfile).
In my case i go to file and select autosave. it starts to work as wish.

Azure maximize button missing.

Not a code question but its stopping me from writing any code. In Azure the maximize button on easy tables is missing in all browsers including Safari, Chrome and Firefox. Also emulating Internet Explorer and Edge in Safari gives the same result. Im on a Mac and don't have access to a windows machine. This button was right next to the close button, now its gone. Has anyone seen this issue or found a fix?
They removed it some time ago (not sure the reasoning behind this, annoying as hell). Nothing you can do about it. Well, you can créate a feedback ítem. thats about it.
I'm using a Windows\Centos laptop, so you can be sure your OS is not the issue.
update:
you can kinda work around it:
I found a fix just now. Grab the right side of the browser window and
drag to the left to make it small. The button appears! If you drag and
make the window larger the button disappears.

Resources