How can I use Selenium RC to verify our Server-Side-Redirects (301, 302)?

前端 未结 2 545
礼貌的吻别
礼貌的吻别 2021-01-06 00:54

We have a bunch of redirects in our Apache configuration. I would like to automate the testing of redirects with Selenium, which led me to some problems:

  • Call
2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-06 01:23

    in python's implementation,

    driver = webdriver.Firefox()
    print driver.current_url
    

    http://selenium.googlecode.com/svn/trunk/docs/api/py/webdriver_remote/selenium.webdriver.remote.webdriver.html#module-selenium.webdriver.remote.webdriver

提交回复
热议问题