启动火狐浏览器,但是无法获取网址

 这是在pycharm编辑器运行时,能打开火狐浏览器,但是无法获取get()的网址

import unittest
from selenium import webdriver

class SerchTest(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Firefox()
        self.driver.implicity_wait(30)
        self.driver.maximize_window()
        self.driver.get('http://demo.magentocommerce.com/')
    def test_index(self):
        pass
    def tearDown(self):
        self.driver.quit()

解决方法:浏览器能够打开,说明有火狐的驱动器geckodriver.exe,无法获取地址,是因为360安全卫士阻止了,关闭360,浏览器跳转到目的地址,给自己点个赞!

 换用chrome浏览器时,出现下面的报错 :报错的原因是chorme的可执行文件找不到路径  参考文章  这个暂时未解决 静候佳音。。。。。

selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home      
原文地址:https://www.cnblogs.com/JuanZi-Sunny/p/9123472.html