seldom
seldom copied to clipboard
【问题】升级到最新版本3.9.1后,原来的链式调用无法使用,提示" 'url' must be a string ",原来的3.7.0版本可以
测试代码如下
import seldom
from seldom import Steps
class Test(seldom.TestCase):
def test_key(self):
Steps().open("https://www.baidu.com").find("#kw").type("seldom").find("#su").click()
# self.open("https://www.baidu.com")
# # 输入 seldomm
# self.Keys(css="#kw").input("seldomm")
if __name__ == '__main__':
seldom.main(browser="gc", debug=True)
selenium.common.exceptions.InvalidArgumentException: Message: invalid argument: 'url' must be a string
(Session info: chrome=129.0.6668.101)
不使用链式调用,可以正常执行 原来使用的是requirements.txt中的3.7.0版本,今天升级到了3.9.1,结果执行不了了 之前写的大部分用例都是链式调用的……