{"id":22802561,"url":"https://github.com/andreaskarz/funkybdd.sxs.selenium.webelement","last_synced_at":"2026-05-17T19:40:27.633Z","repository":{"id":70279718,"uuid":"202293795","full_name":"AndreasKarz/FunkyBDD.SxS.Selenium.WebElement","owner":"AndreasKarz","description":"Extensions for the Selenium IWebElement. Integrates properties and methods that are always needed. Supports the POM and APOM principles.","archived":false,"fork":false,"pushed_at":"2019-09-10T09:03:29.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T20:16:29.149Z","etag":null,"topics":["apom","automated-testing","bdd","bdd-framework","extension","extension-methods","iwebdriver","iwebelement","pom","selenium","selenium-csharp","selenium-webdriver","sxs","testing","testing-framework"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AndreasKarz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-14T07:03:12.000Z","updated_at":"2019-09-10T09:03:31.000Z","dependencies_parsed_at":"2023-02-27T03:46:30.089Z","dependency_job_id":null,"html_url":"https://github.com/AndreasKarz/FunkyBDD.SxS.Selenium.WebElement","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndreasKarz/FunkyBDD.SxS.Selenium.WebElement","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreasKarz%2FFunkyBDD.SxS.Selenium.WebElement","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreasKarz%2FFunkyBDD.SxS.Selenium.WebElement/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreasKarz%2FFunkyBDD.SxS.Selenium.WebElement/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreasKarz%2FFunkyBDD.SxS.Selenium.WebElement/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndreasKarz","download_url":"https://codeload.github.com/AndreasKarz/FunkyBDD.SxS.Selenium.WebElement/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreasKarz%2FFunkyBDD.SxS.Selenium.WebElement/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017382,"owners_count":26086052,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apom","automated-testing","bdd","bdd-framework","extension","extension-methods","iwebdriver","iwebelement","pom","selenium","selenium-csharp","selenium-webdriver","sxs","testing","testing-framework"],"created_at":"2024-12-12T09:06:32.518Z","updated_at":"2025-10-14T00:06:52.368Z","avatar_url":"https://github.com/AndreasKarz.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FunkyBDD.SxS.Selenium.WebElement\nExtensions for the **Selenium IWebElement** with missed methods and properties.\n\n```c#\nusing OpenQA.Selenium;\nusing OpenQA.Selenium.Firefox;\nusing System;\n\nnamespace FunkyBDD.SxS.Selenium.WebElement.Test\n{\n    class Program\n    {\n        public static IWebDriver Driver;\n\n        static void Main(string[] args)\n        {\n            Driver = new FirefoxDriver(\"./\");\n            Driver.Manage().Timeouts().PageLoad = TimeSpan.FromSeconds(120);\n            Driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(5);\n            Driver.Navigate().GoToUrl(\"https://www.swisslife.ch/de/private.html/\");\n            var parent = Driver.FindElement(By.TagName(\"body\"));\n            \n            /* Sometimes you need the wrapped driver of the parent */\n            IWebDriver wrappedDriver = parent.GetDriver();\n            Console.WriteLine($\"The currenttitle '{wrappedDriver.Title}'\");\n\n            /* Find the element inside the parent element safe without exception */\n            var labelToScroll = parent.FindElementFirstOrDefault(By.CssSelector(\"h3.a-heading--style-italic\"), 5);\n            Console.WriteLine(labelToScroll.Text);\n\n            /* Test ScrollTo() */\n            if (labelToScroll != null) {\n                labelToScroll.ScrollTo();\n                Console.WriteLine(\"Scrolled to this label\");\n            }\n            \n            /* Find all elementS inside the parent safe without exception */\n            var labels = parent.FindElementsOrDefault(By.TagName(\"h3\"));\n            Console.WriteLine($\"{labels.Count} labels of h3 found\");\n\n            /* Real example, accept the disclaimer, if it exists */\n            var disclaimerButton = parent.FindElementFirstOrDefault(By.CssSelector(\"[class*='cookie-disclaimer']\u003ebutton\"), 1);\n            if(disclaimerButton != null)\n            {\n                disclaimerButton.Click();\n            }\n\n            /* Search a not existing element inside the parent, should by null */\n            var notFound = parent.FindElementFirstOrDefault(By.TagName(\"h99\"), 5);\n            Console.WriteLine($\"Element h99 is {notFound}\");\n\n            Console.WriteLine(\" \");\n            Console.WriteLine(\"Press enter to terminate...\");\n            Console.ReadLine();\n\n            Driver.Close();\n            Driver.Dispose();\n            Driver.Quit();\n        }\n    }\n}\n\n```\n\n\n\nYou will find a learning project with examples based on this package on [GitHub](https://github.com/AndreasKarz/AutomatedTestingWorkshop)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreaskarz%2Ffunkybdd.sxs.selenium.webelement","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreaskarz%2Ffunkybdd.sxs.selenium.webelement","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreaskarz%2Ffunkybdd.sxs.selenium.webelement/lists"}