diff --git a/docs_source_files/content/webdriver/web_element.de.md b/docs_source_files/content/webdriver/web_element.de.md index 27a84f1ababb..0ea16d26a053 100644 --- a/docs_source_files/content/webdriver/web_element.de.md +++ b/docs_source_files/content/webdriver/web_element.de.md @@ -781,16 +781,40 @@ of an element in the current browsing context. {{< code-tab >}} {{< code-panel language="java" >}} -// Please provide a pr for the code sample + +// Navigate to Url +driver.get("https://www.example.com"); + +// Retrieves the computed style property 'color' of linktext +String cssValue = driver.findElement(By.linkText("More information...")).getCssValue("color"); + {{< / code-panel >}} {{< code-panel language="python" >}} -// Please provide a pr for the code sample + +# Navigate to Url +driver.get('https://www.example.com') + +# Retrieves the computed style property 'color' of linktext +cssValue = driver.findElement(By.LINK_TEXT, "More information...").value_of_css_property('color') + {{< / code-panel >}} {{< code-panel language="csharp" >}} -// Please provide a pr for the code sample + +// Navigate to Url +driver.Navigate().GoToUrl("https://www.example.com"); + +// Retrieves the computed style property 'color' of linktext +String cssValue = driver.FindElement(By.LinkText("More information...")).GetCssValue("color"); + {{< / code-panel >}} {{< code-panel language="ruby" >}} -// Please provide a pr for the code sample + +# Navigate to Url +driver.get 'https://www.example.com' + +# Retrieves the computed style property 'color' of linktext +cssValue = driver.find_element(:link_text, 'More information...').css_value('color') + {{< / code-panel >}} {{< code-panel language="javascript" >}} // Navigate to Url @@ -800,6 +824,12 @@ await driver.get('https://www.example.com'); let cssValue = await driver.findElement(By.linkText("More information...")).getCssValue('color'); {{< / code-panel >}} {{< code-panel language="kotlin" >}} -// Please provide a pr for the code sample + +// Navigate to Url +driver.get("https://www.example.com") + +// Retrieves the computed style property 'color' of linktext +val cssValue = driver.findElement(By.linkText("More information...")).getCssValue("color") + {{< / code-panel >}} {{< / code-tab >}} diff --git a/docs_source_files/content/webdriver/web_element.en.md b/docs_source_files/content/webdriver/web_element.en.md index b314acc1e4fe..00150e296147 100644 --- a/docs_source_files/content/webdriver/web_element.en.md +++ b/docs_source_files/content/webdriver/web_element.en.md @@ -775,25 +775,57 @@ of an element in the current browsing context. {{< code-tab >}} {{< code-panel language="java" >}} -// Please provide a pr for the code sample + +// Navigate to Url +driver.get("https://www.example.com"); + +// Retrieves the computed style property 'color' of linktext +String cssValue = driver.findElement(By.linkText("More information...")).getCssValue("color"); + {{< / code-panel >}} {{< code-panel language="python" >}} -// Please provide a pr for the code sample + +# Navigate to Url +driver.get('https://www.example.com') + +# Retrieves the computed style property 'color' of linktext +cssValue = driver.findElement(By.LINK_TEXT, "More information...").value_of_css_property('color') + {{< / code-panel >}} {{< code-panel language="csharp" >}} -// Please provide a pr for the code sample + +// Navigate to Url +driver.Navigate().GoToUrl("https://www.example.com"); + +// Retrieves the computed style property 'color' of linktext +String cssValue = driver.FindElement(By.LinkText("More information...")).GetCssValue("color"); + {{< / code-panel >}} {{< code-panel language="ruby" >}} -// Please provide a pr for the code sample + +# Navigate to Url +driver.get 'https://www.example.com' + +# Retrieves the computed style property 'color' of linktext +cssValue = driver.find_element(:link_text, 'More information...').css_value('color') + {{< / code-panel >}} {{< code-panel language="javascript" >}} + // Navigate to Url await driver.get('https://www.example.com'); - + // Retrieves the computed style property 'color' of linktext let cssValue = await driver.findElement(By.linkText("More information...")).getCssValue('color'); + {{< / code-panel >}} {{< code-panel language="kotlin" >}} -// Please provide a pr for the code sample + +// Navigate to Url +driver.get("https://www.example.com") + +// Retrieves the computed style property 'color' of linktext +val cssValue = driver.findElement(By.linkText("More information...")).getCssValue("color") + {{< / code-panel >}} {{< / code-tab >}} diff --git a/docs_source_files/content/webdriver/web_element.es.md b/docs_source_files/content/webdriver/web_element.es.md index 0a30489b2dd5..3a867fffbb9f 100644 --- a/docs_source_files/content/webdriver/web_element.es.md +++ b/docs_source_files/content/webdriver/web_element.es.md @@ -786,16 +786,40 @@ of an element in the current browsing context. {{< code-tab >}} {{< code-panel language="java" >}} -// Please provide a pr for the code sample + +// Navigate to Url +driver.get("https://www.example.com"); + +// Retrieves the computed style property 'color' of linktext +String cssValue = driver.findElement(By.linkText("More information...")).getCssValue("color"); + {{< / code-panel >}} {{< code-panel language="python" >}} -// Please provide a pr for the code sample + +# Navigate to Url +driver.get('https://www.example.com') + +# Retrieves the computed style property 'color' of linktext +cssValue = driver.findElement(By.LINK_TEXT, "More information...").value_of_css_property('color') + {{< / code-panel >}} {{< code-panel language="csharp" >}} -// Please provide a pr for the code sample + +// Navigate to Url +driver.Navigate().GoToUrl("https://www.example.com"); + +// Retrieves the computed style property 'color' of linktext +String cssValue = driver.FindElement(By.LinkText("More information...")).GetCssValue("color"); + {{< / code-panel >}} {{< code-panel language="ruby" >}} -// Please provide a pr for the code sample + +# Navigate to Url +driver.get 'https://www.example.com' + +# Retrieves the computed style property 'color' of linktext +cssValue = driver.find_element(:link_text, 'More information...').css_value('color') + {{< / code-panel >}} {{< code-panel language="javascript" >}} // Navigate to Url @@ -805,6 +829,12 @@ await driver.get('https://www.example.com'); let cssValue = await driver.findElement(By.linkText("More information...")).getCssValue('color'); {{< / code-panel >}} {{< code-panel language="kotlin" >}} -// Please provide a pr for the code sample + +// Navigate to Url +driver.get("https://www.example.com") + +// Retrieves the computed style property 'color' of linktext +val cssValue = driver.findElement(By.linkText("More information...")).getCssValue("color") + {{< / code-panel >}} {{< / code-tab >}} diff --git a/docs_source_files/content/webdriver/web_element.fr.md b/docs_source_files/content/webdriver/web_element.fr.md index 84e17be42637..f75cea086495 100644 --- a/docs_source_files/content/webdriver/web_element.fr.md +++ b/docs_source_files/content/webdriver/web_element.fr.md @@ -775,16 +775,40 @@ of an element in the current browsing context. {{< code-tab >}} {{< code-panel language="java" >}} -// Please provide a pr for the code sample + +// Navigate to Url +driver.get("https://www.example.com"); + +// Retrieves the computed style property 'color' of linktext +String cssValue = driver.findElement(By.linkText("More information...")).getCssValue("color"); + {{< / code-panel >}} {{< code-panel language="python" >}} -// Please provide a pr for the code sample + +# Navigate to Url +driver.get('https://www.example.com') + +# Retrieves the computed style property 'color' of linktext +cssValue = driver.findElement(By.LINK_TEXT, "More information...").value_of_css_property('color') + {{< / code-panel >}} {{< code-panel language="csharp" >}} -// Please provide a pr for the code sample + +// Navigate to Url +driver.Navigate().GoToUrl("https://www.example.com"); + +// Retrieves the computed style property 'color' of linktext +String cssValue = driver.FindElement(By.LinkText("More information...")).GetCssValue("color"); + {{< / code-panel >}} {{< code-panel language="ruby" >}} -// Please provide a pr for the code sample + +# Navigate to Url +driver.get 'https://www.example.com' + +# Retrieves the computed style property 'color' of linktext +cssValue = driver.find_element(:link_text, 'More information...').css_value('color') + {{< / code-panel >}} {{< code-panel language="javascript" >}} // Navigate to Url @@ -794,6 +818,12 @@ await driver.get('https://www.example.com'); let cssValue = await driver.findElement(By.linkText("More information...")).getCssValue('color'); {{< / code-panel >}} {{< code-panel language="kotlin" >}} -// Please provide a pr for the code sample + +// Navigate to Url +driver.get("https://www.example.com") + +// Retrieves the computed style property 'color' of linktext +val cssValue = driver.findElement(By.linkText("More information...")).getCssValue("color") + {{< / code-panel >}} {{< / code-tab >}} diff --git a/docs_source_files/content/webdriver/web_element.ja.md b/docs_source_files/content/webdriver/web_element.ja.md index 70fa7c497be2..e185146ac7e7 100644 --- a/docs_source_files/content/webdriver/web_element.ja.md +++ b/docs_source_files/content/webdriver/web_element.ja.md @@ -773,16 +773,40 @@ of an element in the current browsing context. {{< code-tab >}} {{< code-panel language="java" >}} -// Please provide a pr for the code sample + +// Navigate to Url +driver.get("https://www.example.com"); + +// Retrieves the computed style property 'color' of linktext +String cssValue = driver.findElement(By.linkText("More information...")).getCssValue("color"); + {{< / code-panel >}} {{< code-panel language="python" >}} -// Please provide a pr for the code sample + +# Navigate to Url +driver.get('https://www.example.com') + +# Retrieves the computed style property 'color' of linktext +cssValue = driver.findElement(By.LINK_TEXT, "More information...").value_of_css_property('color') + {{< / code-panel >}} {{< code-panel language="csharp" >}} -// Please provide a pr for the code sample + +// Navigate to Url +driver.Navigate().GoToUrl("https://www.example.com"); + +// Retrieves the computed style property 'color' of linktext +String cssValue = driver.FindElement(By.LinkText("More information...")).GetCssValue("color"); + {{< / code-panel >}} {{< code-panel language="ruby" >}} -// Please provide a pr for the code sample + +# Navigate to Url +driver.get 'https://www.example.com' + +# Retrieves the computed style property 'color' of linktext +cssValue = driver.find_element(:link_text, 'More information...').css_value('color') + {{< / code-panel >}} {{< code-panel language="javascript" >}} // Navigate to Url @@ -792,6 +816,12 @@ await driver.get('https://www.example.com'); let cssValue = await driver.findElement(By.linkText("More information...")).getCssValue('color'); {{< / code-panel >}} {{< code-panel language="kotlin" >}} -// Please provide a pr for the code sample + +// Navigate to Url +driver.get("https://www.example.com") + +// Retrieves the computed style property 'color' of linktext +val cssValue = driver.findElement(By.linkText("More information...")).getCssValue("color") + {{< / code-panel >}} {{< / code-tab >}} diff --git a/docs_source_files/content/webdriver/web_element.ko.md b/docs_source_files/content/webdriver/web_element.ko.md index 37fe8bee9aa4..18bb690bf1bd 100644 --- a/docs_source_files/content/webdriver/web_element.ko.md +++ b/docs_source_files/content/webdriver/web_element.ko.md @@ -781,16 +781,40 @@ of an element in the current browsing context. {{< code-tab >}} {{< code-panel language="java" >}} -// Please provide a pr for the code sample + +// Navigate to Url +driver.get("https://www.example.com"); + +// Retrieves the computed style property 'color' of linktext +String cssValue = driver.findElement(By.linkText("More information...")).getCssValue("color"); + {{< / code-panel >}} {{< code-panel language="python" >}} -// Please provide a pr for the code sample + +# Navigate to Url +driver.get('https://www.example.com') + +# Retrieves the computed style property 'color' of linktext +cssValue = driver.findElement(By.LINK_TEXT, "More information...").value_of_css_property('color') + {{< / code-panel >}} {{< code-panel language="csharp" >}} -// Please provide a pr for the code sample + +// Navigate to Url +driver.Navigate().GoToUrl("https://www.example.com"); + +// Retrieves the computed style property 'color' of linktext +String cssValue = driver.FindElement(By.LinkText("More information...")).GetCssValue("color"); + {{< / code-panel >}} {{< code-panel language="ruby" >}} -// Please provide a pr for the code sample + +# Navigate to Url +driver.get 'https://www.example.com' + +# Retrieves the computed style property 'color' of linktext +cssValue = driver.find_element(:link_text, 'More information...').css_value('color') + {{< / code-panel >}} {{< code-panel language="javascript" >}} // Navigate to Url @@ -800,6 +824,12 @@ await driver.get('https://www.example.com'); let cssValue = await driver.findElement(By.linkText("More information...")).getCssValue('color'); {{< / code-panel >}} {{< code-panel language="kotlin" >}} -// Please provide a pr for the code sample + +// Navigate to Url +driver.get("https://www.example.com") + +// Retrieves the computed style property 'color' of linktext +val cssValue = driver.findElement(By.linkText("More information...")).getCssValue("color") + {{< / code-panel >}} {{< / code-tab >}} diff --git a/docs_source_files/content/webdriver/web_element.nl.md b/docs_source_files/content/webdriver/web_element.nl.md index 43808bbc5cee..e22d3778ffec 100644 --- a/docs_source_files/content/webdriver/web_element.nl.md +++ b/docs_source_files/content/webdriver/web_element.nl.md @@ -781,16 +781,40 @@ of an element in the current browsing context. {{< code-tab >}} {{< code-panel language="java" >}} -// Please provide a pr for the code sample + +// Navigate to Url +driver.get("https://www.example.com"); + +// Retrieves the computed style property 'color' of linktext +String cssValue = driver.findElement(By.linkText("More information...")).getCssValue("color"); + {{< / code-panel >}} {{< code-panel language="python" >}} -// Please provide a pr for the code sample + +# Navigate to Url +driver.get('https://www.example.com') + +# Retrieves the computed style property 'color' of linktext +cssValue = driver.findElement(By.LINK_TEXT, "More information...").value_of_css_property('color') + {{< / code-panel >}} {{< code-panel language="csharp" >}} -// Please provide a pr for the code sample + +// Navigate to Url +driver.Navigate().GoToUrl("https://www.example.com"); + +// Retrieves the computed style property 'color' of linktext +String cssValue = driver.FindElement(By.LinkText("More information...")).GetCssValue("color"); + {{< / code-panel >}} {{< code-panel language="ruby" >}} -// Please provide a pr for the code sample + +# Navigate to Url +driver.get 'https://www.example.com' + +# Retrieves the computed style property 'color' of linktext +cssValue = driver.find_element(:link_text, 'More information...').css_value('color') + {{< / code-panel >}} {{< code-panel language="javascript" >}} // Navigate to Url @@ -800,6 +824,12 @@ await driver.get('https://www.example.com'); let cssValue = await driver.findElement(By.linkText("More information...")).getCssValue('color'); {{< / code-panel >}} {{< code-panel language="kotlin" >}} -// Please provide a pr for the code sample + +// Navigate to Url +driver.get("https://www.example.com") + +// Retrieves the computed style property 'color' of linktext +val cssValue = driver.findElement(By.linkText("More information...")).getCssValue("color") + {{< / code-panel >}} {{< / code-tab >}} diff --git a/docs_source_files/content/webdriver/web_element.zh-cn.md b/docs_source_files/content/webdriver/web_element.zh-cn.md index f13023a0c142..8f8a6e25a6bc 100644 --- a/docs_source_files/content/webdriver/web_element.zh-cn.md +++ b/docs_source_files/content/webdriver/web_element.zh-cn.md @@ -778,16 +778,40 @@ of an element in the current browsing context. {{< code-tab >}} {{< code-panel language="java" >}} -// Please provide a pr for the code sample + +// Navigate to Url +driver.get("https://www.example.com"); + +// Retrieves the computed style property 'color' of linktext +String cssValue = driver.findElement(By.linkText("More information...")).getCssValue("color"); + {{< / code-panel >}} {{< code-panel language="python" >}} -// Please provide a pr for the code sample + +# Navigate to Url +driver.get('https://www.example.com') + +# Retrieves the computed style property 'color' of linktext +cssValue = driver.findElement(By.LINK_TEXT, "More information...").value_of_css_property('color') + {{< / code-panel >}} {{< code-panel language="csharp" >}} -// Please provide a pr for the code sample + +// Navigate to Url +driver.Navigate().GoToUrl("https://www.example.com"); + +// Retrieves the computed style property 'color' of linktext +String cssValue = driver.FindElement(By.LinkText("More information...")).GetCssValue("color"); + {{< / code-panel >}} {{< code-panel language="ruby" >}} -// Please provide a pr for the code sample + +# Navigate to Url +driver.get 'https://www.example.com' + +# Retrieves the computed style property 'color' of linktext +cssValue = driver.find_element(:link_text, 'More information...').css_value('color') + {{< / code-panel >}} {{< code-panel language="javascript" >}} // Navigate to Url @@ -797,6 +821,12 @@ await driver.get('https://www.example.com'); let cssValue = await driver.findElement(By.linkText("More information...")).getCssValue('color'); {{< / code-panel >}} {{< code-panel language="kotlin" >}} -// Please provide a pr for the code sample + +// Navigate to Url +driver.get("https://www.example.com") + +// Retrieves the computed style property 'color' of linktext +val cssValue = driver.findElement(By.linkText("More information...")).getCssValue("color") + {{< / code-panel >}} {{< / code-tab >}}