是否有可能在watir-webdriver中打开一个新标签? [英] Is it possible to open a new tab in watir-webdriver?

查看:201
本文介绍了是否有可能在watir-webdriver中打开一个新标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

唯一看起来有点像我试图实现的是,但这只适用于IE浏览器...对于Firefox我发现信息,所以是不可能打开标签,只是新窗口?



和附加方法访问只有OPEN标签/窗口...有没有办法决定在新的窗口/选项卡中打开特定的链接?我在文档中搜索,但我没有找到这样的功能...

解决方案

好吧,这不是一个解决方案,而是一个work-around:

我切换到ruby机械化,与使用完全不同,但可以在没有可见的浏览器窗口的情况下执行多线程和一切操作...


The only thing that looks a bit like what I'm trying to achieve is this, but this works only for IE... for firefox I found that information, so is it not possible to open tabs, just new windows?

And the attach method is accessing only already OPEN tabs/windows... Is there a way to decide to open a specific link in a new window/tab? I searched in the documentation, but I didn't find such a function...

解决方案

Ok thats not a solution but a work-around:

I switch to ruby mechanize, is quite different to use, but allows to do multithreading and everything without a visible browser window...

这篇关于是否有可能在watir-webdriver中打开一个新标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆