--
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-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/a3713bb9-bbe3-407e-99ed-7b3ad9fb929f%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/CA7_FnmKzY0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CABwD1hvY4gh21wp6-RFNThG1P196RRwzk2cnj8EtcfUsk5%2BPZw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAJp3UjVbzYOK36AD5dwi%3DG3yD6FNsGnSJpZ-oNN2gPaAFmk4pQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAJp3UjVbzYOK36AD5dwi%3DG3yD6FNsGnSJpZ-oNN2gPaAFmk4pQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CABwD1ht9c%2B7A6qEuEYdUKN6jhQz3L0%2BG-oo%3D-a6KOdYLtjsP9g%40mail.gmail.com.
Hi Shanthi,Can you please tell me how to select by using DOM. Screenshot attached.
Thanks.
On Thu, Oct 3, 2019, 7:51 PM Shanthi Kandasamy <shanth...@gmail.com> wrote:
input[@name='$select.search']")));In the above line its expecting select tag as in <select> don't you have select tag in the DOM?
On Thu, Oct 3, 2019 at 7:24 PM Suresh Kumar <suri...@gmail.com> wrote:
Hi Shanthi,I tried, but it's not selecting the value in drop down. Following error is displayed.main" org.openqa.selenium.support.ui.UnexpectedTagNameException: Element should have been "select" but was "input"
On Thu, Oct 3, 2019 at 7:12 PM Shanthi Kandasamy <shanth...@gmail.com> wrote:
Select select_OP = new Select(driver.findElement(By.xpath("//div[@name='currentcontext.OPTypeId']//input[@name='$select.search']")));select_OP.selectByValue("Morning OP");try the above one..you had an unnecessary braces which I removed
On Thu, Oct 3, 2019 at 7:03 PM Suresh Kumar <suri...@gmail.com> wrote:
--HiI want to select the value from the drop down. This is my code.Select select_OP = new Select(driver.findElement(By.xpath(("//div[@name='currentcontext.OPTypeId']//input[@name='$select.search']"))));
select_OP.selectByValue("Morning OP");However when i used, i'm the getting this error.Exception in thread "main" org.openqa.selenium.support.ui.UnexpectedTagNameException: Element should have been "select" but was "input"
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:48'
System info: host: 'DESKTOP', ip: '197.178.4.178', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_131'
Driver info: driver.version: unknown
at org.openqa.selenium.support.ui.Select.<init>(Select.java:48)
at oasys.hms_login.main(login.java:39)This is html code for the dropdown. Could you please give suggestion for this.
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 seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/a3713bb9-bbe3-407e-99ed-7b3ad9fb929f%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/CA7_FnmKzY0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CABwD1hvY4gh21wp6-RFNThG1P196RRwzk2cnj8EtcfUsk5%2BPZw%40mail.gmail.com.
--
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 seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAJp3UjVbzYOK36AD5dwi%3DG3yD6FNsGnSJpZ-oNN2gPaAFmk4pQ%40mail.gmail.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/CA7_FnmKzY0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to seleniu...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/d6217e99-8dac-49bf-bc36-c2fb005188a0%40googlegroups.com.