Skip to content

Commit eab7aad

Browse files
shbenzerharsha509
andauthored
added badge codes and fixed ruby code example (#1897)[deploy site]
added badge codes to missing shadow dom examples, and made made ruby code no longer of type text Co-authored-by: Sri Harsha <12621691+harsha509@users.noreply.github.com>
1 parent 1ec0ee1 commit eab7aad

File tree

4 files changed

+20
-12
lines changed

4 files changed

+20
-12
lines changed

website_and_docs/content/documentation/webdriver/elements/finders.en.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,16 @@ var shadowHost = _driver.FindElement(By.CssSelector("#shadow_host"));
131131
var shadowRoot = shadowHost.GetShadowRoot();
132132
var shadowContent = shadowRoot.FindElement(By.CssSelector("#shadow_content"));
133133
{{< /tab >}}
134-
{{< tab header="Ruby" text=true >}}
134+
{{< tab header="Ruby" >}}
135135
shadow_host = @driver.find_element(css: '#shadow_host')
136136
shadow_root = shadow_host.shadow_root
137137
shadow_content = shadow_root.find_element(css: '#shadow_content')
138138
{{< /tab >}}
139-
{{< tab header="JavaScript" >}}
139+
{{< tab header="JavaScript" text=true >}}
140+
{{< badge-code >}}
140141
{{< /tab >}}
141-
{{< tab header="Kotlin" >}}
142+
{{< tab header="Kotlin" text=true >}}
143+
{{< badge-code >}}
142144
{{< /tab >}}
143145
{{< /tabpane >}}
144146

website_and_docs/content/documentation/webdriver/elements/finders.ja.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,16 @@ var shadowHost = _driver.FindElement(By.CssSelector("#shadow_host"));
124124
var shadowRoot = shadowHost.GetShadowRoot();
125125
var shadowContent = shadowRoot.FindElement(By.CssSelector("#shadow_content"));
126126
{{< /tab >}}
127-
{{< tab header="Ruby" text=true >}}
127+
{{< tab header="Ruby" >}}
128128
shadow_host = @driver.find_element(css: '#shadow_host')
129129
shadow_root = shadow_host.shadow_root
130130
shadow_content = shadow_root.find_element(css: '#shadow_content')
131131
{{< /tab >}}
132-
{{< tab header="JavaScript" >}}
132+
{{< tab header="JavaScript" text=true >}}
133+
{{< badge-code >}}
133134
{{< /tab >}}
134-
{{< tab header="Kotlin" >}}
135+
{{< tab header="Kotlin" text=true >}}
136+
{{< badge-code >}}
135137
{{< /tab >}}
136138
{{< /tabpane >}}
137139

website_and_docs/content/documentation/webdriver/elements/finders.pt-br.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,16 @@ var shadowHost = _driver.FindElement(By.CssSelector("#shadow_host"));
127127
var shadowRoot = shadowHost.GetShadowRoot();
128128
var shadowContent = shadowRoot.FindElement(By.CssSelector("#shadow_content"));
129129
{{< /tab >}}
130-
{{< tab header="Ruby" text=true >}}
130+
{{< tab header="Ruby" >}}
131131
shadow_host = @driver.find_element(css: '#shadow_host')
132132
shadow_root = shadow_host.shadow_root
133133
shadow_content = shadow_root.find_element(css: '#shadow_content')
134134
{{< /tab >}}
135-
{{< tab header="JavaScript" >}}
135+
{{< tab header="JavaScript" text=true >}}
136+
{{< badge-code >}}
136137
{{< /tab >}}
137-
{{< tab header="Kotlin" >}}
138+
{{< tab header="Kotlin" text=true >}}
139+
{{< badge-code >}}
138140
{{< /tab >}}
139141
{{< /tabpane >}}
140142

website_and_docs/content/documentation/webdriver/elements/finders.zh-cn.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,16 @@ var shadowHost = _driver.FindElement(By.CssSelector("#shadow_host"));
130130
var shadowRoot = shadowHost.GetShadowRoot();
131131
var shadowContent = shadowRoot.FindElement(By.CssSelector("#shadow_content"));
132132
{{< /tab >}}
133-
{{< tab header="Ruby" text=true >}}
133+
{{< tab header="Ruby" >}}
134134
shadow_host = @driver.find_element(css: '#shadow_host')
135135
shadow_root = shadow_host.shadow_root
136136
shadow_content = shadow_root.find_element(css: '#shadow_content')
137137
{{< /tab >}}
138-
{{< tab header="JavaScript" >}}
138+
{{< tab header="JavaScript" text=true >}}
139+
{{< badge-code >}}
139140
{{< /tab >}}
140-
{{< tab header="Kotlin" >}}
141+
{{< tab header="Kotlin" text=true >}}
142+
{{< badge-code >}}
141143
{{< /tab >}}
142144
{{< /tabpane >}}
143145

0 commit comments

Comments
 (0)