I'm having trouble selecting an item from a custom dropdown menu. I've tried using XPath, CssSelector, and Id with no success.
Here is the link to the code snippet:
I believe I need to target the element with class="SelectBox" in order to access id='ctl00_ctl00_ctl00_MP_Blank_Body_MP_Base_Body_MP_TopSideMenu_Body_ctl00_cboBehandlingstype'
However, I keep encountering errors.
This is my current attempt, which isn't working:
IWebElement test = driver.FindElement(By.XPath("//div[@class='input']//div[@id='ctl00_ctl00_ctl00_MP_Blank_Body_MP_Base_Body_MP_TopSideMenu_Body_ctl00_cboBehandlingstype']"));
Could someone provide me with guidance on how to access the items within the dropdown list?
Thank you! :)