Skip to content
This repository has been archived by the owner. It is now read-only.

On IE, selenium 2.0 b1 does not get_text of any empty element #1163

Closed
lukeis opened this issue Mar 2, 2016 · 9 comments
Closed

On IE, selenium 2.0 b1 does not get_text of any empty element #1163

lukeis opened this issue Mar 2, 2016 · 9 comments

Comments

@lukeis
Copy link
Member

@lukeis lukeis commented Mar 2, 2016

Originally reported on Google Code with ID 1163

What steps will reproduce the problem?
1. Take a table which have a empty column
2. Run selenium script to get_text of that column and verify it
3. selenium.get_text("//table@id='tblLists'//td/a.='#{title}'/../../td2").should eql("")

What is the expected output? What do you see instead?
Expected: Empty string should be returned.
Actual: Throws error
Command execution failure. Please search the forum at http://clearspace.openqa.org
for error details from the log window. The error message is: 'undefined' is null or
not an object

What version of the product are you using? On what operating system?
Selenium 2.0 beta1 , Windows XP, IE, ruby, Rspec, Selenium -RC with selenium client
driver

Please provide any additional information below.

Reported by mohit157 on 2011-01-05 08:34:47

@lukeis
Copy link
Member Author

@lukeis lukeis commented Mar 2, 2016

This is for Se1 RC using the latest Uber jar

Reported by theautomatedtester on 2011-01-09 21:09:04

  • Labels added: Component-Core, Lang-Ruby
@lukeis
Copy link
Member Author

@lukeis lukeis commented Mar 2, 2016

Retest with the latest beta.

Reported by antlong on 2011-01-20 16:05:36

  • Status changed: Fixed
@lukeis
Copy link
Member Author

@lukeis lukeis commented Mar 2, 2016

The problem appears to be specific to IE and blank HTML elements, since within getText()
the b variable is not initialized.

http://hustoknow.blogspot.com/2011/04/selenium-v202b2.html

Diff included.  Tests to reproduce the issue in the link above.

Reported by roger.hu on 2011-04-05 12:11:11


- _Attachment: [atoms.js.patch.diff](https://storage.googleapis.com/google-code-attachments/selenium/issue-1163/comment-3/atoms.js.patch.diff)_
@lukeis
Copy link
Member Author

@lukeis lukeis commented Mar 2, 2016

I'm getting this problem in the standalone server (http://code.google.com/p/selenium/downloads/detail?name=selenium-server-standalone-2.0b3.jar&can=2&q=).
 Will the patch be included in some upcoming release?

Reported by cheempz on 2011-04-15 21:12:13

@lukeis
Copy link
Member Author

@lukeis lukeis commented Mar 2, 2016

I also still have this problem, using release candidate 2 (selenium-server-standalone-2.0rc2.jar).
 (And java client version 1.0.1, in case it matters, but it sounds like the problem
is on the server side.)  Any word on applying the patch?

Reported by lgdean@cyrusinnovation.com on 2011-06-08 19:40:52

@lukeis
Copy link
Member Author

@lukeis lukeis commented Mar 2, 2016

I later noticed that Roger's patch, while helpful for users (thanks!), was not something
a developer could apply to the selenium source.  So my June 8 question didn't quite
make sense.

I then made a patch for the source (based on Roger's change) and attached it to issue
1270.  So now... I guess we wait and hope.

Reported by lgdean@cyrusinnovation.com on 2011-06-14 18:33:48

@lukeis
Copy link
Member Author

@lukeis lukeis commented Mar 2, 2016

This seems to have been actually fixed in version 2.3.1 (the atoms.js file now initializes
the variable to empty string, as Roger's patch does)

Reported by skaffman on 2011-08-11 09:52:59

@lukeis
Copy link
Member Author

@lukeis lukeis commented Mar 2, 2016

Yes, I believe issue 1650 fixes this one (and thus also issue 1270).  (I haven't checked
for myself, as we haven't tried again to upgrade from selenium RC 1, but it certainly
looks like it should.)

Reported by lgdean@cyrusinnovation.com on 2011-08-11 13:29:47

@lukeis
Copy link
Member Author

@lukeis lukeis commented Mar 2, 2016

Reported by luke.semerau on 2015-09-17 18:11:49

  • Labels added: Restrict-AddIssueComment-Commit
@lukeis lukeis closed this Mar 2, 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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.