Discussion:
[selenium-users] I need to check if the dropdown is disabled
Savita Nalawade
2018-12-01 06:27:12 UTC
Permalink
I need to check if the dropdown is disabled. I used the method 'isDisabled'
but even if dd is enabled then also testcase executes successfully. Please
let me know if i need to use some other methods or am i missing something.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/c9dfb70e-17d8-485b-823b-d638c0212762%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
j***@gmail.com
2018-12-01 14:16:48 UTC
Permalink
What is isDisabled method?

Try this,it might help->

Boolean checkDropDownDisplayed = driver.findElement('Xpath of
drop-down').isDisplayed();

if(checkDropDownDisplayed ==true)
{
// Code to select from drop-down
}
else
{
//Code to move on
}
Post by Savita Nalawade
I need to check if the dropdown is disabled. I used the method
'isDisabled' but even if dd is enabled then also testcase executes
successfully. Please let me know if i need to use some other methods or am
i missing something.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/3faf79d8-b275-41e0-b841-e4d50479b402%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Joe Ward
2018-12-02 09:23:23 UTC
Permalink
I am not aware of a 'isDisabled' method in Selenium. Maybe !isEnabled?

https://github.com/SeleniumHQ/selenium/blob/4776510b0994058dd966a8ab10c7d8ddbacf8229/java/client/src/org/openqa/selenium/remote/http/AbstractHttpCommandCodec.java#L168

As per above, you can see that all Selenium does for this is check the
'enabled' attribute so if your test case is still passing I would
investigate whether or not it fulfils this criteria.
Post by Savita Nalawade
I need to check if the dropdown is disabled. I used the method
'isDisabled' but even if dd is enabled then also testcase executes
successfully. Please let me know if i need to use some other methods or am
i missing something.
--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/c9dfb70e-17d8-485b-823b-d638c0212762%40googlegroups.com
<https://groups.google.com/d/msgid/selenium-users/c9dfb70e-17d8-485b-823b-d638c0212762%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAJPyTs2Lhm%2BkMEDZf06Kvx95W6StPgxD5k1feuWf92CNBatjjQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
connect2tech
2018-12-03 05:17:25 UTC
Permalink
Please share the code for Dropdown.

Regards,
~NC
https://goo.gl/DEYjrg
https://bit.ly/2MzMS62


On Saturday, December 1, 2018 at 11:57:12 AM UTC+5:30, Savita Nalawade
Post by Savita Nalawade
I need to check if the dropdown is disabled. I used the method
'isDisabled' but even if dd is enabled then also testcase executes
successfully. Please let me know if i need to use some other methods or am
i missing something.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/ee7d5171-9708-4285-beeb-83bd6fa8395a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...