I am trying to open selenium on the same browser which is not opened using webdriver.
I used python built-in library called "webbrowser", and it open a url on the same browser which is my default when I used .get command it returned me a instance.
I wonder if I can use this instance to use functionalities of selenium webdriver.
Following will get you some idea I am trying to do.
Instance created using web browser library
import webbrowser
webbrowser.open('https://www.example.com')
webrowser.get()
Output
<webbrowser.WindowsDefault at 0x221540bb730>
What I want is
from selenium import webdriver
webdriver.Remote() #or any way in which i give input above instance and in term get all options to controll browser.
I think there should be any way to tackle with this type of problem as it will gains us the access of the default browser and we can perform our automation task without any type of restriction from any domain.
If any one has any query, feel free to ask me.