2024-04-19 09:01:20 发布
网友
我用Splitter和Chrome驱动程序来启动我的网站。我可以与页面上的元素交互。在某个时候,我单击一个链接,它打开(在Ajax中)一个颜色框。如何等待ajax响应,然后用碎片在颜色框中选择/填充一些字段?在
谢谢
可以使用is_element_present方法验证元素是否存在:http://splinter.cobrateam.info/docs/matchers.html#checking-the-presence-of-elements
我猜是这样吧
$(selector).colorbox({ type:'iframe', .... onComplete:function(){ //Ajax is done and now you can operate with this guy } });
可以使用is_element_present方法验证元素是否存在:http://splinter.cobrateam.info/docs/matchers.html#checking-the-presence-of-elements
我猜是这样吧
相关问题 更多 >
编程相关推荐