Skip to main content
Too complicated title for simple question. Added tags
Link
Kate Paulk
  • 31.5k
  • 8
  • 55
  • 109

Selenium/Drop-Down : How to resolve, web-driver click/select different value than provided inIncorrect drop-down? down option selected

Too complicated title for simple question. Added category too. Regards
Link

When passing a value Selenium/Drop-Down : How to resolve, system selects aweb-driver click/select different value from the drop downthan provided in selenium web driverdrop-down?

When passing a value, system is selectingselects a different value from the drop down in selenium web driver

WhenWhile passing a value, system is selectingselects a different value from the drop down in selenium web driver.

Following is the code written:-

driver.findElement(By.xpath(".//*[@id='ctl00_ContentPlaceHolder1_Users_RadGrid_ctl00_ctl02_ctl03_RCNewJobType_Input']")).click();

driver.findElement(By.xpath(".//*[@id='ctl00_ContentPlaceHolder1_Users_RadGrid_ctl00_ctl02_ctl03_RCNewJobType_Input']")).sendKeys(mystring[5]);

driver.findElement(By.xpath(".//*[@id='ctl00_ContentPlaceHolder1_Users_RadGrid_ctl00_ctl02_ctl03_RCNewJobType_Input']")).sendKeys(Keys.ARROW_DOWN,Keys.ENTER);

When passing a value, system is selecting different value from the drop down in selenium web driver

When passing a value, system is selecting different value from the drop down in selenium web driver.

Following is the code written:-

driver.findElement(By.xpath(".//*[@id='ctl00_ContentPlaceHolder1_Users_RadGrid_ctl00_ctl02_ctl03_RCNewJobType_Input']")).click();

driver.findElement(By.xpath(".//*[@id='ctl00_ContentPlaceHolder1_Users_RadGrid_ctl00_ctl02_ctl03_RCNewJobType_Input']")).sendKeys(mystring[5]);

driver.findElement(By.xpath(".//*[@id='ctl00_ContentPlaceHolder1_Users_RadGrid_ctl00_ctl02_ctl03_RCNewJobType_Input']")).sendKeys(Keys.ARROW_DOWN,Keys.ENTER);

When passing a value, system selects a different value from the drop down in selenium web driver

While passing a value, system selects a different value from the drop down in selenium web driver.

Following is the code written:-

driver.findElement(By.xpath(".//*[@id='ctl00_ContentPlaceHolder1_Users_RadGrid_ctl00_ctl02_ctl03_RCNewJobType_Input']")).click();

driver.findElement(By.xpath(".//*[@id='ctl00_ContentPlaceHolder1_Users_RadGrid_ctl00_ctl02_ctl03_RCNewJobType_Input']")).sendKeys(mystring[5]);

driver.findElement(By.xpath(".//*[@id='ctl00_ContentPlaceHolder1_Users_RadGrid_ctl00_ctl02_ctl03_RCNewJobType_Input']")).sendKeys(Keys.ARROW_DOWN,Keys.ENTER);
added 20 characters in body
Source Link
dzieciou
  • 10.5k
  • 9
  • 48
  • 102
Loading
Source Link
Loading