use*_*896 137 python selenium selenium-webdriver
我想在Selenium进行一系列导航后获取当前网址.我知道有一个名为getLocation的命令用于ruby,但我找不到Python的语法.
4d4*_*d4c 235
使用current_url元素.例:
print browser.current_url
Run Code Online (Sandbox Code Playgroud)
Selenium2Library有get_location():
import Selenium2Library
s = Selenium2Library.Selenium2Library()
url = s.get_location()
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
144002 次 |
| 最近记录: |