What exactly are you trying to do?
Get the value of the street (i.e return the street address of the user?)

I assume you are using watir-webdriver ruby.  Correct?



On Friday, February 20, 2015 at 3:20:36 AM UTC-6, Nice Faith wrote:
>
> i try this one:
>
>  puts @browser.execute_script <<-JS
>     var link = document.getElementById('street')
>     return link.innerHTML
>     JS
>
> .. there's no error but then there's no display...
>
> On Tuesday, February 17, 2015 at 2:31:04 PM UTC+8, Nice Faith wrote:
>>
>> Hai Guys. I am just trying to explore or learn Watir.
>> I have already try this one:
>>
>>     puts browser.text
>> and it works. I would like to ask if it is possible to display or print 
>> only the specific element or html tags.
>> For example this one:
>>
>>     <button class="btn btn-add" data-role="add">Add New User</button>
>> Is there any way to get this element only? Not the whole Page source.
>>
>>

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

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to