Not able to select values from drop down using select2019 Community Moderator ElectionSelenium - Python - drop-down menu option valueWhat is the alternative of selenium.isElementPresent in WebdriverHow to click on drop down menu in Python using Selenium and ChromeUsing selenium (python) to select an option from a conditional dropdownHow to select a dropdown value by classname in Selenium WebDriver using JavaUnable to Select From Dropdown By Index in Selenium and JavaSelenium finding a select dropdownHow select a drop down but element type is input using Robot FrameworkHow to Click an Element inside a p-dropdown tag using Selenium and Pythonselenium and python click element in a dropdown

I've given my players a lot of magic items. Is it reasonable for me to give them harder encounters?

Paper published similar to PhD thesis

Issue with units for a rocket nozzle throat area problem

Limpar string com Regex

How would an energy-based "projectile" blow up a spaceship?

Does an unused member variable take up memory?

Was it really inappropriate to write a pull request for the company I interviewed with?

ESPP--any reason not to go all in?

How do you make a gun that shoots melee weapons and/or swords?

direct sum of representation of product groups

What is the orbit and expected lifetime of Crew Dragon trunk?

Interpretation of linear regression interaction term plot

Short story about cities being connected by a conveyor belt

Is the differential, dp, exact or not?

Why restrict private health insurance?

What exactly is the meaning of "fine wine"?

How to educate team mate to take screenshots for bugs with out unwanted stuff

How to make sure I'm assertive enough in contact with subordinates?

Sort array by month and year

Should I apply for my boss's promotion?

Was this cameo in Captain Marvel computer generated?

What can I do if someone tampers with my SSH public key?

Create chunks from an array

Is it appropriate to ask a former professor to order a library book for me through ILL?



Not able to select values from drop down using select



2019 Community Moderator ElectionSelenium - Python - drop-down menu option valueWhat is the alternative of selenium.isElementPresent in WebdriverHow to click on drop down menu in Python using Selenium and ChromeUsing selenium (python) to select an option from a conditional dropdownHow to select a dropdown value by classname in Selenium WebDriver using JavaUnable to Select From Dropdown By Index in Selenium and JavaSelenium finding a select dropdownHow select a drop down but element type is input using Robot FrameworkHow to Click an Element inside a p-dropdown tag using Selenium and Pythonselenium and python click element in a dropdown










0















I am trying to select some value in the Device drop down but I am getting the error - element not intractable: Element is not currently visible and may not be manipulated



We are using knockout js for our application.
The drop down is not even opening.



I am using xpath - "//select[@class='deviceType']"


I am able to use webdriver wait for this that means there is no problem with the xpath but I am not able select the value in the dropdown



 Select device = new Select(deviceDrpDwn);
device.selectByVisibleText(deviceOption);


This is the code I am using to select the drop down value. The dropdown is not opening.



HTML code:
<div class="span9 select-device">
<!-- ko if: sdeviceConfigMap -->
<label data-bind="text: ovd.ui.admin.hart.device">Device (Manufacturer ID, Device Type, User Extension, Characterization)</label>
<select tabindex="16" class="deviceType" data-bind="value: sselectedDeviceConfig,
optionsCaption : ovd.ui.admin.hart.selectDevice,
options: sdeviceConfigMap,
optionsText: 'name',
optionsValue: 'config_id',
event: change: associateConfigWithValve"><option value="">Select Device</option><option value="20">Dresser Masoneilan, SVI II AP / H7, initial, Linear</option><option value="21">Dresser Masoneilan, SVI II AP / H7, initial, Equal % (30)</option><option value="22">Dresser Masoneilan, SVI II AP / H7, initial, Quick Opening</option><option value="23">Dresser Masoneilan, SVI II AP / H7, initial, Linear</option></select>
<!-- /ko -->
</div>


enter image description here










share|improve this question



















  • 1





    Have you tried using selectbyvalue or selectbyindex ?

    – Prany
    2 days ago






  • 1





    @Neha kindly post your html code as we not able see your select tag text.

    – Dhru 'soni
    2 days ago











  • @Prany - I tried selectByValue also. But it didnt work

    – Neha
    2 days ago











  • ok please paste the HTML here then as asked above@Neha

    – Prany
    2 days ago











  • @Neha can you please post html rather snapshot.

    – Kajal Kundu
    2 days ago















0















I am trying to select some value in the Device drop down but I am getting the error - element not intractable: Element is not currently visible and may not be manipulated



We are using knockout js for our application.
The drop down is not even opening.



I am using xpath - "//select[@class='deviceType']"


I am able to use webdriver wait for this that means there is no problem with the xpath but I am not able select the value in the dropdown



 Select device = new Select(deviceDrpDwn);
device.selectByVisibleText(deviceOption);


This is the code I am using to select the drop down value. The dropdown is not opening.



HTML code:
<div class="span9 select-device">
<!-- ko if: sdeviceConfigMap -->
<label data-bind="text: ovd.ui.admin.hart.device">Device (Manufacturer ID, Device Type, User Extension, Characterization)</label>
<select tabindex="16" class="deviceType" data-bind="value: sselectedDeviceConfig,
optionsCaption : ovd.ui.admin.hart.selectDevice,
options: sdeviceConfigMap,
optionsText: 'name',
optionsValue: 'config_id',
event: change: associateConfigWithValve"><option value="">Select Device</option><option value="20">Dresser Masoneilan, SVI II AP / H7, initial, Linear</option><option value="21">Dresser Masoneilan, SVI II AP / H7, initial, Equal % (30)</option><option value="22">Dresser Masoneilan, SVI II AP / H7, initial, Quick Opening</option><option value="23">Dresser Masoneilan, SVI II AP / H7, initial, Linear</option></select>
<!-- /ko -->
</div>


enter image description here










share|improve this question



















  • 1





    Have you tried using selectbyvalue or selectbyindex ?

    – Prany
    2 days ago






  • 1





    @Neha kindly post your html code as we not able see your select tag text.

    – Dhru 'soni
    2 days ago











  • @Prany - I tried selectByValue also. But it didnt work

    – Neha
    2 days ago











  • ok please paste the HTML here then as asked above@Neha

    – Prany
    2 days ago











  • @Neha can you please post html rather snapshot.

    – Kajal Kundu
    2 days ago













0












0








0








I am trying to select some value in the Device drop down but I am getting the error - element not intractable: Element is not currently visible and may not be manipulated



We are using knockout js for our application.
The drop down is not even opening.



I am using xpath - "//select[@class='deviceType']"


I am able to use webdriver wait for this that means there is no problem with the xpath but I am not able select the value in the dropdown



 Select device = new Select(deviceDrpDwn);
device.selectByVisibleText(deviceOption);


This is the code I am using to select the drop down value. The dropdown is not opening.



HTML code:
<div class="span9 select-device">
<!-- ko if: sdeviceConfigMap -->
<label data-bind="text: ovd.ui.admin.hart.device">Device (Manufacturer ID, Device Type, User Extension, Characterization)</label>
<select tabindex="16" class="deviceType" data-bind="value: sselectedDeviceConfig,
optionsCaption : ovd.ui.admin.hart.selectDevice,
options: sdeviceConfigMap,
optionsText: 'name',
optionsValue: 'config_id',
event: change: associateConfigWithValve"><option value="">Select Device</option><option value="20">Dresser Masoneilan, SVI II AP / H7, initial, Linear</option><option value="21">Dresser Masoneilan, SVI II AP / H7, initial, Equal % (30)</option><option value="22">Dresser Masoneilan, SVI II AP / H7, initial, Quick Opening</option><option value="23">Dresser Masoneilan, SVI II AP / H7, initial, Linear</option></select>
<!-- /ko -->
</div>


enter image description here










share|improve this question
















I am trying to select some value in the Device drop down but I am getting the error - element not intractable: Element is not currently visible and may not be manipulated



We are using knockout js for our application.
The drop down is not even opening.



I am using xpath - "//select[@class='deviceType']"


I am able to use webdriver wait for this that means there is no problem with the xpath but I am not able select the value in the dropdown



 Select device = new Select(deviceDrpDwn);
device.selectByVisibleText(deviceOption);


This is the code I am using to select the drop down value. The dropdown is not opening.



HTML code:
<div class="span9 select-device">
<!-- ko if: sdeviceConfigMap -->
<label data-bind="text: ovd.ui.admin.hart.device">Device (Manufacturer ID, Device Type, User Extension, Characterization)</label>
<select tabindex="16" class="deviceType" data-bind="value: sselectedDeviceConfig,
optionsCaption : ovd.ui.admin.hart.selectDevice,
options: sdeviceConfigMap,
optionsText: 'name',
optionsValue: 'config_id',
event: change: associateConfigWithValve"><option value="">Select Device</option><option value="20">Dresser Masoneilan, SVI II AP / H7, initial, Linear</option><option value="21">Dresser Masoneilan, SVI II AP / H7, initial, Equal % (30)</option><option value="22">Dresser Masoneilan, SVI II AP / H7, initial, Quick Opening</option><option value="23">Dresser Masoneilan, SVI II AP / H7, initial, Linear</option></select>
<!-- /ko -->
</div>


enter image description here







selenium webdriver






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 days ago







Neha

















asked 2 days ago









NehaNeha

9910




9910







  • 1





    Have you tried using selectbyvalue or selectbyindex ?

    – Prany
    2 days ago






  • 1





    @Neha kindly post your html code as we not able see your select tag text.

    – Dhru 'soni
    2 days ago











  • @Prany - I tried selectByValue also. But it didnt work

    – Neha
    2 days ago











  • ok please paste the HTML here then as asked above@Neha

    – Prany
    2 days ago











  • @Neha can you please post html rather snapshot.

    – Kajal Kundu
    2 days ago












  • 1





    Have you tried using selectbyvalue or selectbyindex ?

    – Prany
    2 days ago






  • 1





    @Neha kindly post your html code as we not able see your select tag text.

    – Dhru 'soni
    2 days ago











  • @Prany - I tried selectByValue also. But it didnt work

    – Neha
    2 days ago











  • ok please paste the HTML here then as asked above@Neha

    – Prany
    2 days ago











  • @Neha can you please post html rather snapshot.

    – Kajal Kundu
    2 days ago







1




1





Have you tried using selectbyvalue or selectbyindex ?

– Prany
2 days ago





Have you tried using selectbyvalue or selectbyindex ?

– Prany
2 days ago




1




1





@Neha kindly post your html code as we not able see your select tag text.

– Dhru 'soni
2 days ago





@Neha kindly post your html code as we not able see your select tag text.

– Dhru 'soni
2 days ago













@Prany - I tried selectByValue also. But it didnt work

– Neha
2 days ago





@Prany - I tried selectByValue also. But it didnt work

– Neha
2 days ago













ok please paste the HTML here then as asked above@Neha

– Prany
2 days ago





ok please paste the HTML here then as asked above@Neha

– Prany
2 days ago













@Neha can you please post html rather snapshot.

– Kajal Kundu
2 days ago





@Neha can you please post html rather snapshot.

– Kajal Kundu
2 days ago












2 Answers
2






active

oldest

votes


















1














Your element is not visible at the time of Webdriver inteacting.Please wait for the element to be visible.



WebDriverWait wait=new WebDriverWait(driver,40); 
Select select=new Select(wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//select[@class='deviceType']"))));
select.selectByIndex(1); //n=1,2...n


or
select.selectByVisibleText(arg0);






share|improve this answer

























  • Its still failing with the same error

    – Neha
    2 days ago











  • your element is not visible so you have to wait for visible.Please try the updated code.

    – Kajal Kundu
    2 days ago


















0














This worked for me:



WebElement dropdown = driver.findElement(By.xpath( "//select[@class='deviceType']"));
dropdown.sendKeys(deviceOption);






share|improve this answer






















    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',
    autoActivateHeartbeat: false,
    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%2f55018642%2fnot-able-to-select-values-from-drop-down-using-select%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    Your element is not visible at the time of Webdriver inteacting.Please wait for the element to be visible.



    WebDriverWait wait=new WebDriverWait(driver,40); 
    Select select=new Select(wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//select[@class='deviceType']"))));
    select.selectByIndex(1); //n=1,2...n


    or
    select.selectByVisibleText(arg0);






    share|improve this answer

























    • Its still failing with the same error

      – Neha
      2 days ago











    • your element is not visible so you have to wait for visible.Please try the updated code.

      – Kajal Kundu
      2 days ago















    1














    Your element is not visible at the time of Webdriver inteacting.Please wait for the element to be visible.



    WebDriverWait wait=new WebDriverWait(driver,40); 
    Select select=new Select(wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//select[@class='deviceType']"))));
    select.selectByIndex(1); //n=1,2...n


    or
    select.selectByVisibleText(arg0);






    share|improve this answer

























    • Its still failing with the same error

      – Neha
      2 days ago











    • your element is not visible so you have to wait for visible.Please try the updated code.

      – Kajal Kundu
      2 days ago













    1












    1








    1







    Your element is not visible at the time of Webdriver inteacting.Please wait for the element to be visible.



    WebDriverWait wait=new WebDriverWait(driver,40); 
    Select select=new Select(wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//select[@class='deviceType']"))));
    select.selectByIndex(1); //n=1,2...n


    or
    select.selectByVisibleText(arg0);






    share|improve this answer















    Your element is not visible at the time of Webdriver inteacting.Please wait for the element to be visible.



    WebDriverWait wait=new WebDriverWait(driver,40); 
    Select select=new Select(wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//select[@class='deviceType']"))));
    select.selectByIndex(1); //n=1,2...n


    or
    select.selectByVisibleText(arg0);







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited 2 days ago









    Athmeeya Gowda

    162




    162










    answered 2 days ago









    Kajal KunduKajal Kundu

    1,8241213




    1,8241213












    • Its still failing with the same error

      – Neha
      2 days ago











    • your element is not visible so you have to wait for visible.Please try the updated code.

      – Kajal Kundu
      2 days ago

















    • Its still failing with the same error

      – Neha
      2 days ago











    • your element is not visible so you have to wait for visible.Please try the updated code.

      – Kajal Kundu
      2 days ago
















    Its still failing with the same error

    – Neha
    2 days ago





    Its still failing with the same error

    – Neha
    2 days ago













    your element is not visible so you have to wait for visible.Please try the updated code.

    – Kajal Kundu
    2 days ago





    your element is not visible so you have to wait for visible.Please try the updated code.

    – Kajal Kundu
    2 days ago













    0














    This worked for me:



    WebElement dropdown = driver.findElement(By.xpath( "//select[@class='deviceType']"));
    dropdown.sendKeys(deviceOption);






    share|improve this answer



























      0














      This worked for me:



      WebElement dropdown = driver.findElement(By.xpath( "//select[@class='deviceType']"));
      dropdown.sendKeys(deviceOption);






      share|improve this answer

























        0












        0








        0







        This worked for me:



        WebElement dropdown = driver.findElement(By.xpath( "//select[@class='deviceType']"));
        dropdown.sendKeys(deviceOption);






        share|improve this answer













        This worked for me:



        WebElement dropdown = driver.findElement(By.xpath( "//select[@class='deviceType']"));
        dropdown.sendKeys(deviceOption);







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 2 days ago









        NehaNeha

        9910




        9910



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55018642%2fnot-able-to-select-values-from-drop-down-using-select%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

            2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived

            Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme