Is it possible to open a new tab in watir-webdriver?

大憨熊 提交于 2019-12-24 06:26:32

问题


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...


回答1:


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...



来源:https://stackoverflow.com/questions/3626789/is-it-possible-to-open-a-new-tab-in-watir-webdriver

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!