Hi All,

I am facing one issue while while checking one element is selected or not?

Scenario: Once you login to the app there are four tabs and by default one
tab is selected. I need to check that that tab is auto selected or not?

I am trying the below code but it is returning as false.

driver.findElemnt(By.xpath("locator of the element")).isSelected();

Can anybody help me for sorting out the issue?

Thanks,

Sudhansu

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/d8951425-87de-4d36-912a-3a930414f0fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 4 | next ›
Discussion Overview
groupselenium-users @
categoriesselenium
postedJan 12, '15 at 3:41p
activeJan 13, '15 at 4:17a
posts4
users3
websiteseleniumhq.org

People

Translate

site design / logo © 2021 Grokbase