Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

SelectElement doe snot work on a page factory element after 2.31.2 #5327

Closed
lukeis opened this issue Mar 4, 2016 · 5 comments
Closed

SelectElement doe snot work on a page factory element after 2.31.2 #5327

lukeis opened this issue Mar 4, 2016 · 5 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 4, 2016

Originally reported on Google Code with ID 5327

Before filing an issue, please read the page at
http://code.google.com/p/selenium/wiki/SeleniumHelp This contains lot of
information about how best to get help, and tells you what we need to know.

Still here? We know that bugs are frustrating and annoying things. We also
know that you've probably spent ages trying to figure out what's wrong. The
more information you give us now, the more likely it is that we'll be able
to help.

What steps will reproduce the problem?
1. Recently upgraded to 2.31.2. Change log mentions that page factory may give unexpected
problems after the update. Reporting the issue so that it is known to everyone and
solution can be found out.
2. A page factory element is defined as
[FindsBy(How = How.Id, Using = "EducationLevelID")] [CacheLookup]
public IWebElement _eEducationLevel = null;

An option is selected as below:
new SelectElement(_eEducationLevel ).SelectByText("text of option to be selected");

3. Worked perfectly fine before 2.31.2. After 2.31.2, it does not work. Selenium hangs
at the above step. On stopping the test (in Nunit), unhandled socketexception error
is shown. No call stack information is displayed as no source is available.

3. However below 2 methods still work:
IWebElement _eL1 = driver.FindElement(By.Id("EducationLevelID"));
new SelectElement(_eL1 ).SelectByText("text of option to be selected")

_eEducationLevel.SendKeys("text of option to be selected")


What is the expected output? What do you see instead?


Selenium version:
OS:
Browser:
Browser version:


Please provide any additional information below. A sample reduced test
case, or a public URL that demonstrates the problem will intrigue our merry
band of Open Source developers far more than nothing at all: they'll be far
more likely to look at your problem if you make it easy for them!

Reported by ikman100@yahoo.co.uk on 2013-03-12 18:55:16

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Selenium version:2.31.2
OS:Windows 7
Browser:IE
Browser version: IE9

Reported by ikman100@yahoo.co.uk on 2013-03-12 18:58:09

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

It's highly likely this is a duplicate of issue #5306, which was fixed in revision 66a54be07398.

Reported by james.h.evans.jr on 2013-03-12 19:29:41

  • Status changed: Accepted

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by barancev on 2013-03-12 20:33:39

  • Labels added: Lang-CSharp

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Closing after comment 2

Reported by barancev on 2013-10-19 17:03:02

  • Status changed: Fixed
  • Labels removed: Status-Untriaged

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by luke.semerau on 2015-09-17 18:16:57

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 4, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant