Lucas,

Thank you, it works fine.

On Tuesday, December 13, 2016 at 8:47:25 PM UTC+5:30, Lucas Tierney wrote:
>
> You need to have 'http://' in front of 'www.yahoo.com' (look at how Titus 
> did it)
>
> On Tuesday, December 13, 2016 at 8:12:40 AM UTC-6, Raja gopalan wrote:
>>
>> It's opening new window but it's loading wrong url in the second window, 
>> for an example, I have written the following code
>>
>> require 'watir'
>>> b=Watir::Browser.new :chrome
>>> b.goto 'www.google.com'
>>> b.execute_script('window.open("www.yahoo.com")')
>>>
>>> gets
>>
>>
>> but it's loading the given below url, 
>>
>> https://www.google.co.in/www.yahoo.com 
>>
>>
>> What's the problem here?  
>>
>> On Tuesday, December 13, 2016 at 4:25:56 AM UTC+5:30, Titus Fortner wrote:
>>>
>>> To open a new window:
>>> browser.execute_script('window.open("http://google.com";)')
>>>
>>>
>>>
>>> On Mon, Dec 12, 2016 at 3:46 PM, duggimpudi <duggimpu...@gmail.com> 
>>> wrote:
>>>
>>>> I need to open the tab parallely when am executing my scenario in same 
>>>> browser in chrome. Am using rubymine with ruby for executing my steps.
>>>>
>>>> eg:Let say my scenario has 10 steps after completion of the 7th 
>>>> step(cucmber) i need to open the same url in another tab before that 
>>>> execution tab close. Thanks in advance for your response.
>>>>
>>>>
>>>> -- 
>>>> -- 
>>>> Before posting, please read http://watir.com/support. In short: search 
>>>> before you ask, be nice.
>>>>  
>>>> watir-...@googlegroups.com
>>>> http://groups.google.com/group/watir-general
>>>> watir-genera...@googlegroups.com
>>>>
>>>> --- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "Watir General" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to watir-genera...@googlegroups.com.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to