Я выбираю выпадающий список, но после этого он просто выделяет параметр, но не выбирает его на самом деле. На рисунке ниже показано, как выглядит
var dropDownElement = driver.FindElement(By.CssSelector("select[id*='dropdownId']"));
var selectElement = new SelectElement(dropDownElement);
selectElement.SelectByValue("Item_defective");
html выглядит следующим образом
<span class="a-dropdown-container">
<select name="d8f9acb5-d135-472d-98f5-407f1d6ba3e3-questionSet-AmazonUSDefault_2-question-Q_AmazonUSDefault_2" autocomplete="off" id="d8f9acb5-d135-472d-98f5-407f1d6ba3e3-questionSet-AmazonUSDefault_2-question-Q_AmazonUSDefault_2-native-dropdown" tabindex="0" class="a-native-dropdown a-button-span10">
<option class="a-prompt" value="">Choose a response</option>
<option value="RO_CR-UNWANTED_ITEM">
No longer needed
</option>
<option value="RO_AMZ-PG-BAD-DESC">
Inaccurate website description
</option>
<option value="RO_CR-DEFECTIVE">
Item defective or doesn’t work
</option>
<option value="RO_CR-ORDERED_WRONG_ITEM">
Bought by mistake
</option>
<option value="RO_CR-FOUND_BETTER_PRICE">
Better price available
</option>
<option value="RO_CR-DAMAGED_BY_FC">
Product damaged, but shipping box OK
</option>
<option value="RO_CR-MISSED_ESTIMATED_DELIVERY">
Item arrived too late
</option>
<option value="RO_CR-MISSING_PARTS">
Missing or broken parts
</option>
<option value="RO_CR-DAMAGED_BY_CARRIER">
Product and shipping box both damaged
</option>
<option value="RO_CR-SWITCHEROO">
Wrong item was sent
</option>
<option value="RO_CR-EXTRA_ITEM">
Received extra item I didn’t buy (no refund needed)
</option>
<option value="RO_CR-UNAUTHORIZED_PURCHASE">
Didn't approve purchase
</option>
</select>
<span tabindex="-1" id="d8f9acb5-d135-472d-98f5-407f1d6ba3e3-questionSet-AmazonUSDefault_2-question-Q_AmazonUSDefault_2-dropdown" data-item-id="d8f9acb5-d135-472d-98f5-407f1d6ba3e3" data-primary-question-set-id="AmazonUSDefault_2" data-question-element-id="d8f9acb5-d135-472d-98f5-407f1d6ba3e3-questionSet-AmazonUSDefault_2-question-Q_AmazonUSDefault_2" data-question-id="Q_AmazonUSDefault_2" data-question-set-id="AmazonUSDefault_2" data-a-class="d8f9acb5-d135-472d-98f5-407f1d6ba3e3-question-dropdown question-dropdown" class="a-button a-button-dropdown a-button-span10 d8f9acb5-d135-472d-98f5-407f1d6ba3e3-question-dropdown question-dropdown" aria-hidden="true" style="min-width: 0%;"><span class="a-button-inner"><span class="a-button-text a-declarative" data-action="a-dropdown-button" role="button" aria-hidden="true"><span class="a-dropdown-prompt">Choose a response</span></span><i class="a-icon a-icon-dropdown"></i></span></span></span>