Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98814

How to launch actual browser instead of testing browser from geckodriver? (python, Selenium) [duplicate]

$
0
0

How do I run my code and have Fire fox and chrome actually run from the web browsers to make the actual changes rather then running them in the testing browser? I thought changing the driver location from the one off of selenium to the actual exe location would do it, but it just gives me error about missing driver.

Can some one give me an example? Also I thought you could launch firefox with the profile insted of the driver like so:

from selenium import webdriver
url = "<website name>"
fp = webdriver.FirefoxProfile('C:\\Users\\<admin>\\AppData\\Local\\Mozilla\\Firefox\\Profiles\\t18zcb43.<new profile>')
driver = webdriver.Firefox(fp)
driver.get(url)

Viewing all articles
Browse latest Browse all 98814

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>