How To select from combobox with selenium c#?











up vote
0
down vote

favorite












How to change default value dropdown or combobox list to others value?



i want to change allshow to onlyactive






<html>
<body>

<form method="post" action=""> <br>
First Name:<input type="text" size="12" maxlength="12" name="Fname"> <br>
Last Name:<input type="text" size="12" maxlength="36" name="Lname"> <br>
Gender:<br>
Male:<input type="radio" value="Male" name="gender"><br>
Female:<input type="radio" value="Female" name="gender"><br>
Favorite Food:<br>
Steak:<input type="checkbox" value="Steak" name="food"><br>
Pizza:<input type="checkbox" value="Pizza" name="food"><br>
Chicken:<input type="checkbox" value="Chicken" name="food"><br>

<div class="uk-width-1-6@m uk-grid-margin">
<div class="uk-margin" data-select2-id="11">
<label class="uk-form-label">Status :</label>
<select class="uk-select js-select2 select2-hidden-accessible" name="search[active]" data-select2-id="7" tabindex="-1" aria-hidden="true">
<option value="" data-select2-id="9">AllShow</option>
<option value="1" data-select2-id="17">onlyactive</option>
<option value="2" data-select2-id="18">onlyinactive</option>
</select>
<span class="select2 select2-container select2-container--default select2-container--below select2-container--focus" dir="rtl" data-select2-id="8" style="width: 217.325px;"><span class="selection"><span class="select2-selection select2-selection--single" role="combobox" aria-haspopup="true" aria-expanded="false" tabindex="0" aria-labelledby="select2-searchactive-21-container"><span class="select2-selection__rendered" id="select2-searchactive-21-container" role="textbox" aria-readonly="true" title="AllShow">AllShow</span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span></span></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>
</div>
</div>

</form>

</body>
</html>





IWebDriver driver = new FirefoxDriver(service);
IWebElement comboBox = driver.FindElement(By.Name("search[active]"));
comboBox.Click();


use this code:



    // select the drop down list
var education = driver.FindElement(By.Name("education"));
//create select element object
var selectElement = new SelectElement(education);


but error




The type or namespace name 'SelectElement' could not be found (are you
missing a using directive or an assembly reference?)




Selenium.WebDriver.3.141.0










share|improve this question
























  • Possible duplicate of How to select an option from drop down using Selenium WebDriver C#?
    – Guy
    Nov 4 at 8:49










  • var selectElement = new SelectElement dosnt in version , help me
    – cyrus2500
    Nov 4 at 8:51












  • What do you mean dosnt in version?
    – Guy
    Nov 4 at 8:55










  • Specify the variable in the selectelement initialization, try var selectElement = new SelectElement(comboBox);
    – Shlomi Bazel
    Nov 4 at 8:56










  • The type or namespace name 'SelectElement' could not be found (are you missing a using directive or an assembly reference?)
    – cyrus2500
    Nov 4 at 9:03















up vote
0
down vote

favorite












How to change default value dropdown or combobox list to others value?



i want to change allshow to onlyactive






<html>
<body>

<form method="post" action=""> <br>
First Name:<input type="text" size="12" maxlength="12" name="Fname"> <br>
Last Name:<input type="text" size="12" maxlength="36" name="Lname"> <br>
Gender:<br>
Male:<input type="radio" value="Male" name="gender"><br>
Female:<input type="radio" value="Female" name="gender"><br>
Favorite Food:<br>
Steak:<input type="checkbox" value="Steak" name="food"><br>
Pizza:<input type="checkbox" value="Pizza" name="food"><br>
Chicken:<input type="checkbox" value="Chicken" name="food"><br>

<div class="uk-width-1-6@m uk-grid-margin">
<div class="uk-margin" data-select2-id="11">
<label class="uk-form-label">Status :</label>
<select class="uk-select js-select2 select2-hidden-accessible" name="search[active]" data-select2-id="7" tabindex="-1" aria-hidden="true">
<option value="" data-select2-id="9">AllShow</option>
<option value="1" data-select2-id="17">onlyactive</option>
<option value="2" data-select2-id="18">onlyinactive</option>
</select>
<span class="select2 select2-container select2-container--default select2-container--below select2-container--focus" dir="rtl" data-select2-id="8" style="width: 217.325px;"><span class="selection"><span class="select2-selection select2-selection--single" role="combobox" aria-haspopup="true" aria-expanded="false" tabindex="0" aria-labelledby="select2-searchactive-21-container"><span class="select2-selection__rendered" id="select2-searchactive-21-container" role="textbox" aria-readonly="true" title="AllShow">AllShow</span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span></span></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>
</div>
</div>

</form>

</body>
</html>





IWebDriver driver = new FirefoxDriver(service);
IWebElement comboBox = driver.FindElement(By.Name("search[active]"));
comboBox.Click();


use this code:



    // select the drop down list
var education = driver.FindElement(By.Name("education"));
//create select element object
var selectElement = new SelectElement(education);


but error




The type or namespace name 'SelectElement' could not be found (are you
missing a using directive or an assembly reference?)




Selenium.WebDriver.3.141.0










share|improve this question
























  • Possible duplicate of How to select an option from drop down using Selenium WebDriver C#?
    – Guy
    Nov 4 at 8:49










  • var selectElement = new SelectElement dosnt in version , help me
    – cyrus2500
    Nov 4 at 8:51












  • What do you mean dosnt in version?
    – Guy
    Nov 4 at 8:55










  • Specify the variable in the selectelement initialization, try var selectElement = new SelectElement(comboBox);
    – Shlomi Bazel
    Nov 4 at 8:56










  • The type or namespace name 'SelectElement' could not be found (are you missing a using directive or an assembly reference?)
    – cyrus2500
    Nov 4 at 9:03













up vote
0
down vote

favorite









up vote
0
down vote

favorite











How to change default value dropdown or combobox list to others value?



i want to change allshow to onlyactive






<html>
<body>

<form method="post" action=""> <br>
First Name:<input type="text" size="12" maxlength="12" name="Fname"> <br>
Last Name:<input type="text" size="12" maxlength="36" name="Lname"> <br>
Gender:<br>
Male:<input type="radio" value="Male" name="gender"><br>
Female:<input type="radio" value="Female" name="gender"><br>
Favorite Food:<br>
Steak:<input type="checkbox" value="Steak" name="food"><br>
Pizza:<input type="checkbox" value="Pizza" name="food"><br>
Chicken:<input type="checkbox" value="Chicken" name="food"><br>

<div class="uk-width-1-6@m uk-grid-margin">
<div class="uk-margin" data-select2-id="11">
<label class="uk-form-label">Status :</label>
<select class="uk-select js-select2 select2-hidden-accessible" name="search[active]" data-select2-id="7" tabindex="-1" aria-hidden="true">
<option value="" data-select2-id="9">AllShow</option>
<option value="1" data-select2-id="17">onlyactive</option>
<option value="2" data-select2-id="18">onlyinactive</option>
</select>
<span class="select2 select2-container select2-container--default select2-container--below select2-container--focus" dir="rtl" data-select2-id="8" style="width: 217.325px;"><span class="selection"><span class="select2-selection select2-selection--single" role="combobox" aria-haspopup="true" aria-expanded="false" tabindex="0" aria-labelledby="select2-searchactive-21-container"><span class="select2-selection__rendered" id="select2-searchactive-21-container" role="textbox" aria-readonly="true" title="AllShow">AllShow</span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span></span></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>
</div>
</div>

</form>

</body>
</html>





IWebDriver driver = new FirefoxDriver(service);
IWebElement comboBox = driver.FindElement(By.Name("search[active]"));
comboBox.Click();


use this code:



    // select the drop down list
var education = driver.FindElement(By.Name("education"));
//create select element object
var selectElement = new SelectElement(education);


but error




The type or namespace name 'SelectElement' could not be found (are you
missing a using directive or an assembly reference?)




Selenium.WebDriver.3.141.0










share|improve this question















How to change default value dropdown or combobox list to others value?



i want to change allshow to onlyactive






<html>
<body>

<form method="post" action=""> <br>
First Name:<input type="text" size="12" maxlength="12" name="Fname"> <br>
Last Name:<input type="text" size="12" maxlength="36" name="Lname"> <br>
Gender:<br>
Male:<input type="radio" value="Male" name="gender"><br>
Female:<input type="radio" value="Female" name="gender"><br>
Favorite Food:<br>
Steak:<input type="checkbox" value="Steak" name="food"><br>
Pizza:<input type="checkbox" value="Pizza" name="food"><br>
Chicken:<input type="checkbox" value="Chicken" name="food"><br>

<div class="uk-width-1-6@m uk-grid-margin">
<div class="uk-margin" data-select2-id="11">
<label class="uk-form-label">Status :</label>
<select class="uk-select js-select2 select2-hidden-accessible" name="search[active]" data-select2-id="7" tabindex="-1" aria-hidden="true">
<option value="" data-select2-id="9">AllShow</option>
<option value="1" data-select2-id="17">onlyactive</option>
<option value="2" data-select2-id="18">onlyinactive</option>
</select>
<span class="select2 select2-container select2-container--default select2-container--below select2-container--focus" dir="rtl" data-select2-id="8" style="width: 217.325px;"><span class="selection"><span class="select2-selection select2-selection--single" role="combobox" aria-haspopup="true" aria-expanded="false" tabindex="0" aria-labelledby="select2-searchactive-21-container"><span class="select2-selection__rendered" id="select2-searchactive-21-container" role="textbox" aria-readonly="true" title="AllShow">AllShow</span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span></span></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>
</div>
</div>

</form>

</body>
</html>





IWebDriver driver = new FirefoxDriver(service);
IWebElement comboBox = driver.FindElement(By.Name("search[active]"));
comboBox.Click();


use this code:



    // select the drop down list
var education = driver.FindElement(By.Name("education"));
//create select element object
var selectElement = new SelectElement(education);


but error




The type or namespace name 'SelectElement' could not be found (are you
missing a using directive or an assembly reference?)




Selenium.WebDriver.3.141.0






<html>
<body>

<form method="post" action=""> <br>
First Name:<input type="text" size="12" maxlength="12" name="Fname"> <br>
Last Name:<input type="text" size="12" maxlength="36" name="Lname"> <br>
Gender:<br>
Male:<input type="radio" value="Male" name="gender"><br>
Female:<input type="radio" value="Female" name="gender"><br>
Favorite Food:<br>
Steak:<input type="checkbox" value="Steak" name="food"><br>
Pizza:<input type="checkbox" value="Pizza" name="food"><br>
Chicken:<input type="checkbox" value="Chicken" name="food"><br>

<div class="uk-width-1-6@m uk-grid-margin">
<div class="uk-margin" data-select2-id="11">
<label class="uk-form-label">Status :</label>
<select class="uk-select js-select2 select2-hidden-accessible" name="search[active]" data-select2-id="7" tabindex="-1" aria-hidden="true">
<option value="" data-select2-id="9">AllShow</option>
<option value="1" data-select2-id="17">onlyactive</option>
<option value="2" data-select2-id="18">onlyinactive</option>
</select>
<span class="select2 select2-container select2-container--default select2-container--below select2-container--focus" dir="rtl" data-select2-id="8" style="width: 217.325px;"><span class="selection"><span class="select2-selection select2-selection--single" role="combobox" aria-haspopup="true" aria-expanded="false" tabindex="0" aria-labelledby="select2-searchactive-21-container"><span class="select2-selection__rendered" id="select2-searchactive-21-container" role="textbox" aria-readonly="true" title="AllShow">AllShow</span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span></span></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>
</div>
</div>

</form>

</body>
</html>





<html>
<body>

<form method="post" action=""> <br>
First Name:<input type="text" size="12" maxlength="12" name="Fname"> <br>
Last Name:<input type="text" size="12" maxlength="36" name="Lname"> <br>
Gender:<br>
Male:<input type="radio" value="Male" name="gender"><br>
Female:<input type="radio" value="Female" name="gender"><br>
Favorite Food:<br>
Steak:<input type="checkbox" value="Steak" name="food"><br>
Pizza:<input type="checkbox" value="Pizza" name="food"><br>
Chicken:<input type="checkbox" value="Chicken" name="food"><br>

<div class="uk-width-1-6@m uk-grid-margin">
<div class="uk-margin" data-select2-id="11">
<label class="uk-form-label">Status :</label>
<select class="uk-select js-select2 select2-hidden-accessible" name="search[active]" data-select2-id="7" tabindex="-1" aria-hidden="true">
<option value="" data-select2-id="9">AllShow</option>
<option value="1" data-select2-id="17">onlyactive</option>
<option value="2" data-select2-id="18">onlyinactive</option>
</select>
<span class="select2 select2-container select2-container--default select2-container--below select2-container--focus" dir="rtl" data-select2-id="8" style="width: 217.325px;"><span class="selection"><span class="select2-selection select2-selection--single" role="combobox" aria-haspopup="true" aria-expanded="false" tabindex="0" aria-labelledby="select2-searchactive-21-container"><span class="select2-selection__rendered" id="select2-searchactive-21-container" role="textbox" aria-readonly="true" title="AllShow">AllShow</span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span></span></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>
</div>
</div>

</form>

</body>
</html>






c# selenium selenium-webdriver






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 4 at 9:50

























asked Nov 4 at 8:42









cyrus2500

334112




334112












  • Possible duplicate of How to select an option from drop down using Selenium WebDriver C#?
    – Guy
    Nov 4 at 8:49










  • var selectElement = new SelectElement dosnt in version , help me
    – cyrus2500
    Nov 4 at 8:51












  • What do you mean dosnt in version?
    – Guy
    Nov 4 at 8:55










  • Specify the variable in the selectelement initialization, try var selectElement = new SelectElement(comboBox);
    – Shlomi Bazel
    Nov 4 at 8:56










  • The type or namespace name 'SelectElement' could not be found (are you missing a using directive or an assembly reference?)
    – cyrus2500
    Nov 4 at 9:03


















  • Possible duplicate of How to select an option from drop down using Selenium WebDriver C#?
    – Guy
    Nov 4 at 8:49










  • var selectElement = new SelectElement dosnt in version , help me
    – cyrus2500
    Nov 4 at 8:51












  • What do you mean dosnt in version?
    – Guy
    Nov 4 at 8:55










  • Specify the variable in the selectelement initialization, try var selectElement = new SelectElement(comboBox);
    – Shlomi Bazel
    Nov 4 at 8:56










  • The type or namespace name 'SelectElement' could not be found (are you missing a using directive or an assembly reference?)
    – cyrus2500
    Nov 4 at 9:03
















Possible duplicate of How to select an option from drop down using Selenium WebDriver C#?
– Guy
Nov 4 at 8:49




Possible duplicate of How to select an option from drop down using Selenium WebDriver C#?
– Guy
Nov 4 at 8:49












var selectElement = new SelectElement dosnt in version , help me
– cyrus2500
Nov 4 at 8:51






var selectElement = new SelectElement dosnt in version , help me
– cyrus2500
Nov 4 at 8:51














What do you mean dosnt in version?
– Guy
Nov 4 at 8:55




What do you mean dosnt in version?
– Guy
Nov 4 at 8:55












Specify the variable in the selectelement initialization, try var selectElement = new SelectElement(comboBox);
– Shlomi Bazel
Nov 4 at 8:56




Specify the variable in the selectelement initialization, try var selectElement = new SelectElement(comboBox);
– Shlomi Bazel
Nov 4 at 8:56












The type or namespace name 'SelectElement' could not be found (are you missing a using directive or an assembly reference?)
– cyrus2500
Nov 4 at 9:03




The type or namespace name 'SelectElement' could not be found (are you missing a using directive or an assembly reference?)
– cyrus2500
Nov 4 at 9:03












1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










I believe that you're missing assembly reference, SelectElement class is available at namespace OpenQA.Selenium.Support.UI.



Nuget:




https://www.nuget.org/packages/Selenium.Support/3.141.0




Then it should works.



using OpenQA.Selenium.Support.UI;

var comboBox = driver.FindElement(By.Name("search[active]"));
new SelectElement(comboBox).SelectByText("onlyactive");


EDIT:



SelectByText providing the text of the option to be selected. If your combobox doesn't contains specified text value, then it will throw NoSuchElementException.






share|improve this answer










New contributor




FrustratedEveryday is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















  • install again but same error.:((((
    – cyrus2500
    Nov 4 at 9:27










  • .netframework is 4.5
    – cyrus2500
    Nov 4 at 9:29










  • install only selenium.webdriver 3.141.0 and using OpenQA.Selenium.Support.UI;
    – cyrus2500
    Nov 4 at 9:30






  • 1




    @cyrus2500 Did you missing using directive? using OpenQA.Selenium.Support.UI; I've already tested in my environment with the same version you've mentioned. It is works fine i.imgur.com/JblBvwn.png
    – FrustratedEveryday
    Nov 4 at 9:33












  • ok dear,create new project and install and work for me,thanks.
    – cyrus2500
    Nov 4 at 9:37











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53139090%2fhow-to-select-from-combobox-with-selenium-c%23new-answer', 'question_page');
}
);

Post as a guest
































1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote



accepted










I believe that you're missing assembly reference, SelectElement class is available at namespace OpenQA.Selenium.Support.UI.



Nuget:




https://www.nuget.org/packages/Selenium.Support/3.141.0




Then it should works.



using OpenQA.Selenium.Support.UI;

var comboBox = driver.FindElement(By.Name("search[active]"));
new SelectElement(comboBox).SelectByText("onlyactive");


EDIT:



SelectByText providing the text of the option to be selected. If your combobox doesn't contains specified text value, then it will throw NoSuchElementException.






share|improve this answer










New contributor




FrustratedEveryday is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















  • install again but same error.:((((
    – cyrus2500
    Nov 4 at 9:27










  • .netframework is 4.5
    – cyrus2500
    Nov 4 at 9:29










  • install only selenium.webdriver 3.141.0 and using OpenQA.Selenium.Support.UI;
    – cyrus2500
    Nov 4 at 9:30






  • 1




    @cyrus2500 Did you missing using directive? using OpenQA.Selenium.Support.UI; I've already tested in my environment with the same version you've mentioned. It is works fine i.imgur.com/JblBvwn.png
    – FrustratedEveryday
    Nov 4 at 9:33












  • ok dear,create new project and install and work for me,thanks.
    – cyrus2500
    Nov 4 at 9:37















up vote
1
down vote



accepted










I believe that you're missing assembly reference, SelectElement class is available at namespace OpenQA.Selenium.Support.UI.



Nuget:




https://www.nuget.org/packages/Selenium.Support/3.141.0




Then it should works.



using OpenQA.Selenium.Support.UI;

var comboBox = driver.FindElement(By.Name("search[active]"));
new SelectElement(comboBox).SelectByText("onlyactive");


EDIT:



SelectByText providing the text of the option to be selected. If your combobox doesn't contains specified text value, then it will throw NoSuchElementException.






share|improve this answer










New contributor




FrustratedEveryday is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















  • install again but same error.:((((
    – cyrus2500
    Nov 4 at 9:27










  • .netframework is 4.5
    – cyrus2500
    Nov 4 at 9:29










  • install only selenium.webdriver 3.141.0 and using OpenQA.Selenium.Support.UI;
    – cyrus2500
    Nov 4 at 9:30






  • 1




    @cyrus2500 Did you missing using directive? using OpenQA.Selenium.Support.UI; I've already tested in my environment with the same version you've mentioned. It is works fine i.imgur.com/JblBvwn.png
    – FrustratedEveryday
    Nov 4 at 9:33












  • ok dear,create new project and install and work for me,thanks.
    – cyrus2500
    Nov 4 at 9:37













up vote
1
down vote



accepted







up vote
1
down vote



accepted






I believe that you're missing assembly reference, SelectElement class is available at namespace OpenQA.Selenium.Support.UI.



Nuget:




https://www.nuget.org/packages/Selenium.Support/3.141.0




Then it should works.



using OpenQA.Selenium.Support.UI;

var comboBox = driver.FindElement(By.Name("search[active]"));
new SelectElement(comboBox).SelectByText("onlyactive");


EDIT:



SelectByText providing the text of the option to be selected. If your combobox doesn't contains specified text value, then it will throw NoSuchElementException.






share|improve this answer










New contributor




FrustratedEveryday is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









I believe that you're missing assembly reference, SelectElement class is available at namespace OpenQA.Selenium.Support.UI.



Nuget:




https://www.nuget.org/packages/Selenium.Support/3.141.0




Then it should works.



using OpenQA.Selenium.Support.UI;

var comboBox = driver.FindElement(By.Name("search[active]"));
new SelectElement(comboBox).SelectByText("onlyactive");


EDIT:



SelectByText providing the text of the option to be selected. If your combobox doesn't contains specified text value, then it will throw NoSuchElementException.







share|improve this answer










New contributor




FrustratedEveryday is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this answer



share|improve this answer








edited Nov 4 at 10:02





















New contributor




FrustratedEveryday is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









answered Nov 4 at 9:16









FrustratedEveryday

30410




30410




New contributor




FrustratedEveryday is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





FrustratedEveryday is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






FrustratedEveryday is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • install again but same error.:((((
    – cyrus2500
    Nov 4 at 9:27










  • .netframework is 4.5
    – cyrus2500
    Nov 4 at 9:29










  • install only selenium.webdriver 3.141.0 and using OpenQA.Selenium.Support.UI;
    – cyrus2500
    Nov 4 at 9:30






  • 1




    @cyrus2500 Did you missing using directive? using OpenQA.Selenium.Support.UI; I've already tested in my environment with the same version you've mentioned. It is works fine i.imgur.com/JblBvwn.png
    – FrustratedEveryday
    Nov 4 at 9:33












  • ok dear,create new project and install and work for me,thanks.
    – cyrus2500
    Nov 4 at 9:37


















  • install again but same error.:((((
    – cyrus2500
    Nov 4 at 9:27










  • .netframework is 4.5
    – cyrus2500
    Nov 4 at 9:29










  • install only selenium.webdriver 3.141.0 and using OpenQA.Selenium.Support.UI;
    – cyrus2500
    Nov 4 at 9:30






  • 1




    @cyrus2500 Did you missing using directive? using OpenQA.Selenium.Support.UI; I've already tested in my environment with the same version you've mentioned. It is works fine i.imgur.com/JblBvwn.png
    – FrustratedEveryday
    Nov 4 at 9:33












  • ok dear,create new project and install and work for me,thanks.
    – cyrus2500
    Nov 4 at 9:37
















install again but same error.:((((
– cyrus2500
Nov 4 at 9:27




install again but same error.:((((
– cyrus2500
Nov 4 at 9:27












.netframework is 4.5
– cyrus2500
Nov 4 at 9:29




.netframework is 4.5
– cyrus2500
Nov 4 at 9:29












install only selenium.webdriver 3.141.0 and using OpenQA.Selenium.Support.UI;
– cyrus2500
Nov 4 at 9:30




install only selenium.webdriver 3.141.0 and using OpenQA.Selenium.Support.UI;
– cyrus2500
Nov 4 at 9:30




1




1




@cyrus2500 Did you missing using directive? using OpenQA.Selenium.Support.UI; I've already tested in my environment with the same version you've mentioned. It is works fine i.imgur.com/JblBvwn.png
– FrustratedEveryday
Nov 4 at 9:33






@cyrus2500 Did you missing using directive? using OpenQA.Selenium.Support.UI; I've already tested in my environment with the same version you've mentioned. It is works fine i.imgur.com/JblBvwn.png
– FrustratedEveryday
Nov 4 at 9:33














ok dear,create new project and install and work for me,thanks.
– cyrus2500
Nov 4 at 9:37




ok dear,create new project and install and work for me,thanks.
– cyrus2500
Nov 4 at 9:37


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53139090%2fhow-to-select-from-combobox-with-selenium-c%23new-answer', 'question_page');
}
);

Post as a guest




















































































這個網誌中的熱門文章

Xamarin.form Move up view when keyboard appear

Post-Redirect-Get with Spring WebFlux and Thymeleaf

Anylogic : not able to use stopDelay()