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
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>
selenium webdriver
|
show 3 more comments
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>
selenium webdriver
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
|
show 3 more comments
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>
selenium webdriver
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>
selenium webdriver
selenium webdriver
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
|
show 3 more comments
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
|
show 3 more comments
2 Answers
2
active
oldest
votes
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);
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
add a comment |
This worked for me:
WebElement dropdown = driver.findElement(By.xpath( "//select[@class='deviceType']"));
dropdown.sendKeys(deviceOption);
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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);
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
add a comment |
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);
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
add a comment |
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);
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);
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
add a comment |
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
add a comment |
This worked for me:
WebElement dropdown = driver.findElement(By.xpath( "//select[@class='deviceType']"));
dropdown.sendKeys(deviceOption);
add a comment |
This worked for me:
WebElement dropdown = driver.findElement(By.xpath( "//select[@class='deviceType']"));
dropdown.sendKeys(deviceOption);
add a comment |
This worked for me:
WebElement dropdown = driver.findElement(By.xpath( "//select[@class='deviceType']"));
dropdown.sendKeys(deviceOption);
This worked for me:
WebElement dropdown = driver.findElement(By.xpath( "//select[@class='deviceType']"));
dropdown.sendKeys(deviceOption);
answered 2 days ago
NehaNeha
9910
9910
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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