timeout : Union[float, NoneType] Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by using the `browser_context.set_default_timeout()` or `page.set_default_timeout()` methods.
timeout: Union[float, NoneType]
最大时间以毫秒为单位,默认为30秒,通过' 0 '禁用超时。 默认值可以修改为
使用' browser_context.set_default_timeout() '或' page.set_default_timeout() '方法。
1000毫秒 为一秒
page.set_default_timeout() 方法会影响全局的等待时间
page.click('text=2',timeout=2000) 只会改变当前点击的等待时间