{"action":"opened","issue":{"url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/354","labels_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/354/labels{/name}","comments_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/354/comments","events_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/354/events","html_url":"https://github.com/SeleniumHQ/selenium/issues/354","id":63200171,"number":354,"title":"[C#] SelectElement.SelectedOption slow on big lists","user":{"login":"FrankyBoy","id":265792,"avatar_url":"https://avatars.githubusercontent.com/u/265792?v=3","gravatar_id":"","url":"https://api.github.com/users/FrankyBoy","html_url":"https://github.com/FrankyBoy","followers_url":"https://api.github.com/users/FrankyBoy/followers","following_url":"https://api.github.com/users/FrankyBoy/following{/other_user}","gists_url":"https://api.github.com/users/FrankyBoy/gists{/gist_id}","starred_url":"https://api.github.com/users/FrankyBoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FrankyBoy/subscriptions","organizations_url":"https://api.github.com/users/FrankyBoy/orgs","repos_url":"https://api.github.com/users/FrankyBoy/repos","events_url":"https://api.github.com/users/FrankyBoy/events{/privacy}","received_events_url":"https://api.github.com/users/FrankyBoy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-20T10:01:05Z","updated_at":"2015-03-20T10:01:05Z","closed_at":null,"body":"Hi!\r\n\r\nThe current implementation of the SelectedOption property is quite slow (because it checks each element in turn). Because of this a colleague of mine implemented an extension method which (he claims). The replacement code is simply as such:\r\n\r\n    return _element.FindElement(By.CssSelector(\"option[selected]\"))\r\n\r\nAllSelectedOptions could be adapted in a similar manner (i.e. FindElements with same selector).\r\nLet me know if that solution actually works or if its just a \"common special case\" kind of thing.\r\n\r\nCheers!"}}