{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium-dotnet-driver/issues/178","repository_url":"https://api.github.com/repos/appium/appium-dotnet-driver","labels_url":"https://api.github.com/repos/appium/appium-dotnet-driver/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium-dotnet-driver/issues/178/comments","events_url":"https://api.github.com/repos/appium/appium-dotnet-driver/issues/178/events","html_url":"https://github.com/appium/appium-dotnet-driver/issues/178","id":223928624,"number":178,"title":"How to access ComboBox selected item and select any other item when automating windows app","user":{"login":"seenals","id":20317354,"avatar_url":"https://avatars3.githubusercontent.com/u/20317354?v=3","gravatar_id":"","url":"https://api.github.com/users/seenals","html_url":"https://github.com/seenals","followers_url":"https://api.github.com/users/seenals/followers","following_url":"https://api.github.com/users/seenals/following{/other_user}","gists_url":"https://api.github.com/users/seenals/gists{/gist_id}","starred_url":"https://api.github.com/users/seenals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seenals/subscriptions","organizations_url":"https://api.github.com/users/seenals/orgs","repos_url":"https://api.github.com/users/seenals/repos","events_url":"https://api.github.com/users/seenals/events{/privacy}","received_events_url":"https://api.github.com/users/seenals/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-24T19:38:25Z","updated_at":"2017-05-05T15:59:36Z","closed_at":null,"body":"## Description\r\n\r\nI have a date picker in windows app. When I use Inspect.exe, the control type for date and time are ComboBoxes. I want to read the value set in hour combobox and set it another value depending on a calculation.\r\n\r\nI tried the below code snippet.\r\nvar hourDropDown = driver.FindElementByAccessibilityId(\"HourPicker\");\r\nSelectElement hourpicker = new SelectElement(hourPickerDropDown);\r\n\r\nBut the SelectElement statement is throwing the below exception\r\nOpenQA.Selenium.Support.UI.UnexpectedTagNameException: **Element should have been select but was ControlType.ComboBox**\r\n\r\nFor WindowsApp, is there any other way to get the dropdown options?\r\n\r\n## Environment\r\n\r\n.NET client build version or git revision if you use some shapshot: Appium.WebDriver 3.0.0.2\r\nMobile platform/version under test: Windows 8.1 store app.\r\nReal device or emulator/simulator: Desktop OS Windows 10\r\nExecuting WinAppDriver\r\n\r\n\r\n## Code To Reproduce Issue\r\n\r\nIn windows 8.1 app, use a datepicker and use the code snippet below to get the item selected in th Hour dropdown.\r\nvar hourDropDown = driver.FindElementByAccessibilityId(\"HourPicker\");\r\nSelectElement hourpicker = new SelectElement(hourPickerDropDown);\r\n\r\n## Ecxeption stacktraces\r\n\r\nResult StackTrace:\t\r\nat OpenQA.Selenium.Support.UI.SelectElement..ctor(IWebElement element)\r\n   at AutomationProj.AppTests.DoExecute() in .....AppTests.cs:line 353\r\n   at ....TestMethod1() in \r\nResult Message:\t\r\nTest method EAMAutomation.EAMStructureTests.TestMethod1 threw exception: \r\nOpenQA.Selenium.Support.UI.UnexpectedTagNameException: Element should have been select but was ControlType.ComboBox\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/appium/appium-dotnet-driver/issues/comments/299504428","html_url":"https://github.com/appium/appium-dotnet-driver/issues/178#issuecomment-299504428","issue_url":"https://api.github.com/repos/appium/appium-dotnet-driver/issues/178","id":299504428,"user":{"login":"sureshbabukothapalli","id":28449778,"avatar_url":"https://avatars3.githubusercontent.com/u/28449778?v=3","gravatar_id":"","url":"https://api.github.com/users/sureshbabukothapalli","html_url":"https://github.com/sureshbabukothapalli","followers_url":"https://api.github.com/users/sureshbabukothapalli/followers","following_url":"https://api.github.com/users/sureshbabukothapalli/following{/other_user}","gists_url":"https://api.github.com/users/sureshbabukothapalli/gists{/gist_id}","starred_url":"https://api.github.com/users/sureshbabukothapalli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sureshbabukothapalli/subscriptions","organizations_url":"https://api.github.com/users/sureshbabukothapalli/orgs","repos_url":"https://api.github.com/users/sureshbabukothapalli/repos","events_url":"https://api.github.com/users/sureshbabukothapalli/events{/privacy}","received_events_url":"https://api.github.com/users/sureshbabukothapalli/received_events","type":"User","site_admin":false},"created_at":"2017-05-05T15:59:36Z","updated_at":"2017-05-05T15:59:36Z","body":"I am also facing same issue. can you please some one help"}}
{"actor":{"display_login":"sureshbabukothapalli"}}