"Fossies" - the Fresh Open Source Software Archive

Member "selenium-selenium-4.9.1/javascript/atoms/test/html5/testdata/frame_a.html" (8 May 2023, 778 Bytes) of package /linux/www/selenium-selenium-4.9.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <!DOCTYPE HTML>
    2 <html>
    3 <head>
    4   <script src="../../test_bootstrap.js"></script>
    5   <script type="text/javascript">
    6     goog.require('bot.dom');
    7     goog.require('bot.storage');
    8     goog.require('bot.html5');
    9   </script>
   10 
   11   <script type="text/javascript">
   12     if(bot.html5.isSupported(bot.html5.API.LOCAL_STORAGE)) {
   13       var localStorage_ = bot.storage.getLocalStorage();
   14       localStorage_.removeItem('foo1');
   15       localStorage_.setItem('foo1', 'bar11');
   16     }
   17 
   18     if(bot.html5.isSupported(bot.html5.API.SESSION_STORAGE)) {
   19       var sessionStorage_ = bot.storage.getSessionStorage();
   20       sessionStorage_.removeItem('foo2');
   21       sessionStorage_.setItem('foo2', 'bar22');
   22     }
   23   </script>
   24 </head>
   25 <body>
   26 <iframe id="frame_b" src="frame_b.html"></iframe>
   27 </body>
   28 </html>