If you just want to examine the values seems like you could do something 
like this:

http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_webstorage_session
b.execute_script("return sessionStorage.clickcount")

http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_webstorage_local_clickcount
b.execute_script("return localStorage.clickcount")

On Wednesday, January 30, 2013 7:08:04 PM UTC-5, Arkie wrote:
>
> selenium-webdriver (2.29.0)
> watir-webdriver (0.6.2)
>
> Hi there.
>
> What I am trying to do is access the localSession object from a Watir 
> browser.  I'm unsure on what I need to do to to my object to access its 
> Selenium bits.
>
> I did a google search on various combinations of watir-webdriver and 
> sessionstorage/localstorage/storage, but nothing hit the spot.
>
>
> from IRB (ruby 1.9.3p362 on a windows machine) I did the following things
>
> >require 'watir-webdriver'
> >require 'selenium-webdriver'
> >browser=Watir::Browser.new :chrome
>
> but I am unsure of how to turn 
>
> irb(main):018:0> browser.class
> => Watir::Browser
>
> into something that I can do  Selenium::WebDriver::HTML5 things on. 
>
> Ultimately, I would like to interact with SessionStorage and also 
> LocalStorage to examine its values.
>
> Thanks
> -Arkie
>
>

-- 
-- 
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/groups/opt_out.


Reply via email to