FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
selenium-webdriver-java/docs/web-storage.html at master · pavithra-pvb/selenium-webdriver-java · GitHub
pavithra-pvb
/
selenium-webdriver-java
Public
forked from
bonigarcia/selenium-webdriver-java
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
selenium-webdriver-java
/
docs
/
web-storage.html
Copy path
More file actions
More file actions
Latest commit
History
History
History
90 lines (78 loc) · 2.77 KB
Breadcrumbs
selenium-webdriver-java
/
docs
/
web-storage.html
Copy path
File metadata and controls
90 lines (78 loc) · 2.77 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html
>
<
html
lang
="
en
"
class
="
h-100
"
>
<
head
>
<
title
>
Hands-On Selenium WebDriver with Java
</
title
>
<
meta
charset
="
utf-8
"
>
<
meta
name
="
viewport
"
content
="
width=device-width, initial-scale=1
"
>
<
meta
name
="
author
"
content
="
Boni Garcia
"
>
<
link
rel
="
icon
"
type
="
image/png
"
href
="
img/hands-on-icon.png
"
>
<
link
href
="
//cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css
"
rel
="
stylesheet
"
>
<
script
src
="
//code.jquery.com/jquery-3.6.0.min.js
"
>
</
script
>
<
script
src
="
//cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.bundle.min.js
"
>
</
script
>
</
head
>
<
body
class
="
d-flex flex-column h-100
"
>
<
main
class
="
flex-shrink-2
"
>
<
div
class
="
container
"
>
<
div
class
="
row py-2
"
>
<
div
class
="
col col-10
"
>
<
h1
class
="
display-4
"
>
Hands-On Selenium WebDriver with Java
</
h1
>
<
h5
>
Practice site
</
h5
>
</
div
>
<
div
class
="
col col-2
"
>
<
a
href
="
https://github.com/bonigarcia/selenium-webdriver-java
"
>
<
img
class
="
img-fluid
"
src
="
img/hands-on-icon.png
"
>
</
a
>
</
div
>
</
div
>
<
div
class
="
row
"
>
<
div
class
="
col col-12
"
>
<
hr
class
="
my-4
"
>
</
div
>
</
div
>
<
div
class
="
row
"
>
<
div
class
="
col-12
"
>
<
h1
class
="
display-6
"
>
Web storage
</
h1
>
</
div
>
</
div
>
<
div
class
="
row
"
>
<
div
class
="
col-2 py-2
"
>
<
button
class
="
btn btn-outline-primary
"
id
="
display-local
"
>
Display local storage
</
button
>
</
div
>
<
div
class
="
col-10 py-2
"
>
<
p
id
="
local-storage
"
class
="
lead
"
>
</
p
>
</
div
>
</
div
>
<
div
class
="
row
"
>
<
div
class
="
col-2 py-2
"
>
<
button
class
="
btn btn-outline-primary
"
id
="
display-session
"
>
Display session storage
</
button
>
</
div
>
<
div
class
="
col-10 py-2
"
>
<
p
id
="
session-storage
"
class
="
lead
"
>
</
p
>
</
div
>
</
div
>
</
div
>
</
main
>
<
footer
class
="
footer mt-auto py-3 bg-light
"
>
<
div
class
="
container
"
>
<
span
class
="
text-muted
"
>
Copyright © 2021-2023
<
a
href
="
https://bonigarcia.dev/
"
>
Boni García
</
a
>
</
span
>
</
div
>
</
footer
>
<
script
>
sessionStorage
.
setItem
(
"name"
,
"John"
)
;
sessionStorage
.
setItem
(
"lastname"
,
"Doe"
)
;
document
.
getElementById
(
"display-local"
)
.
addEventListener
(
"click"
,
function
(
)
{
refresh
(
localStorage
,
"local-storage"
)
;
}
)
;
document
.
getElementById
(
"display-session"
)
.
addEventListener
(
"click"
,
function
(
)
{
refresh
(
sessionStorage
,
"session-storage"
)
;
}
)
;
function
refresh
(
storage
,
paragraph
)
{
let
p
=
document
.
getElementById
(
paragraph
)
;
if
(
typeof
(
Storage
)
!==
"undefined"
)
{
p
.
innerText
=
JSON
.
stringify
(
storage
)
+
"\n"
;
}
else
{
p
.
innerText
=
"Sorry, no web storage support"
;
}
}
</
script
>
</
body
>
</
html
>
Back
|
FazBrowse Home
|
New Git URL