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

C#.net RC Exception occurs when calling getText on a empty DIV element #1270

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

C#.net RC Exception occurs when calling getText on a empty DIV element #1270

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 1270

What steps will reproduce the problem?
1.  Call getText on an xpath location of an empty div

Error message from server:  'undefined' is null or not an object

What is the expected output? What do you see instead?
Other browsers return empty string

What version of the product are you using? On what operating system?
Selenium 2.0 Beta1

Please provide any additional information below.

Reported by shiang.luong on 2011-02-04 18:05:23

@lukeis
Copy link
Member Author

@lukeis lukeis commented Mar 2, 2016

I'm getting similar effect with id location of span that has empty text.
I'm using selenium-server-standalone-2.0b2.jar using Internet Explorer 8 via *iexplore.
I'm attaching a tiny example.

Thanks for selenium,
Murray.

Reported by murray.bishop on 2011-03-10 02:45:13


- _Attachment: [assert-span-empty.zip](https://storage.googleapis.com/google-code-attachments/selenium/issue-1270/comment-1/assert-span-empty.zip)_
@lukeis
Copy link
Member Author

@lukeis lukeis commented Mar 2, 2016

Same issue as http://code.google.com/p/selenium/issues/detail?id=1163

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

@lukeis
Copy link
Member Author

@lukeis lukeis commented Mar 2, 2016

Issue confirmed/fixed thanks to your code:

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

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

@lukeis
Copy link
Member Author

@lukeis lukeis commented Mar 2, 2016

I still have ID-locator problem murray mentioned on March 9, now with release candidate
2 (selenium-server-standalone-2.0rc2.jar).  Any word on applying the patch from issue
1163?

Reported by lgdean@cyrusinnovation.com on 2011-06-08 19:44:35

@lukeis
Copy link
Member Author

@lukeis lukeis commented Mar 2, 2016

I took a closer look at the patch on issue 1163, and I noticed it would work only for
an end user.  I've attached a version that a developer could apply to trunk.

Please note: I didn't run the test I added, as I have not (yet?) gotten the build working
on my machine.  (Or maybe I did run it; the test output file is empty, but I saw windows
popping up and running tests, so obviously *something* ran.  In any case, I didn't
see the test fail and then pass; you'll need to do that part.)

Reported by lgdean@cyrusinnovation.com on 2011-06-14 15:02:45


- _Attachment: [issue-1270.diff](https://storage.googleapis.com/google-code-attachments/selenium/issue-1270/comment-5/issue-1270.diff)_
@lukeis
Copy link
Member Author

@lukeis lukeis commented Mar 2, 2016

I've now run my test in IE.  It fails without the test.js change, and passes with that
change.

(Never did get the whole suite running, but I managed to run single tests in IE and
occasionally even to convince it to reload to get my changes!)

Reported by lgdean@cyrusinnovation.com on 2011-06-14 15:58:59

@lukeis
Copy link
Member Author

@lukeis lukeis commented Mar 2, 2016

So it looks like issue 1650 fixes this one as well.  I haven't tried it for myself,
and our team decided to put off our upgrade from selenium RC1 and so haven't tried
again yet.  (But with this issue fixed, maybe now we should!)

Reported by lgdean@cyrusinnovation.com on 2011-08-11 13:51:41

@lukeis
Copy link
Member Author

@lukeis lukeis commented Mar 2, 2016

This issue was closed by revision r13120

Reported by barancev on 2011-10-12 19:58:56

  • Status changed: Fixed
@lukeis
Copy link
Member Author

@lukeis lukeis commented Mar 2, 2016

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

  • 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.