browser

Is it possible to "transfer" a session between selenium.webdriver and requests.session

Is it possible to "transfer" a session between selenium.webdriver and requests.session Question: In theory, if I copy all of the cookies from selenium’s webdriver object to requests.Session object, would requests be able to continue on as if the session was not interrupted? Specifically, I am interested in writing automation where I get to specific location …

Total answers: 1

Python/Selenium incognito/private mode

Python/Selenium incognito/private mode Question: I can not seem to find any documentation on how to make Selenium open the browser in incognito mode. Do I have to setup a custom profile in the browser or? Asked By: BubblewrapBeast || Source Answers: First of all, since selenium by default starts up a browser with a clean, …

Total answers: 10

Python creating dynamic button

Python creating dynamic button Question: I have an array, which holds some URLs. I essentially want to create a button, within a tk, that opens the url in a browser. So far, i’ve got the button to create, however, when i run the .py file, it seems that the function to open the page is …

Total answers: 1

How to deal with certificates using Selenium?

How to deal with certificates using Selenium? Question: I am using Selenium to launch a browser. How can I deal with the webpages (URLs) that will ask the browser to accept a certificate or not? In Firefox, I may have a website like that asks me to accept its certificate like this: On the Internet …

Total answers: 19

List of open browser tabs programmatically

List of open browser tabs programmatically Question: Is there a way to programmatically obtain a list of open tabs in a browser by index? For example, suppose Google Chrome is open with two tabs. In the program, a line something like: tabs_list = list_tabs(hwnd) …where hwnd is the handle to the window for the overall …

Total answers: 3

Can i code browser games in python in my website

Can i code browser games in python in my website Question: I am not much into gaming but i am learning and doing some practicles in Artifical Intelligence algorithms. Now as i can develop full fledge application so it means even if learn various techniques , i won’t be having anything to show in interview. …

Total answers: 3

python's webbrowser launches IE, instead of default browser, on Windows relative path

python's webbrowser launches IE, instead of default browser, on Windows relative path Question: I’m attempting to launch a local html file from python in the default browser (right now my default is Google Chrome if I double-click on a .html file, Chrome launches.) When I use python’s webbrowser.open(), IE launches instead, with a blank address …

Total answers: 14

Change browser proxy settings from Python?

Change browser proxy settings from Python? Question: I have written a program that relies on a proxy to function. I now need a script that will check to see if the browser is set to use the right proxy, and if not, change it to use it. I need this implemented for as many browsers …

Total answers: 3

Python Desktop Application with the Browser as an interface?

Python Desktop Application with the Browser as an interface? Question: I want to create an application that runs on the users computer, a stand-alone application, with installation and what-not, but I want the interface to be a browser, either internal and displayed as an OS window or external accessible using the browser (i.e. some http …

Total answers: 5