Re: Issue 2561 in selenium: XPath Fails to Resolve in Firefox, but only when PC is connected to a projector

6 views
Skip to first unread message

sele...@googlecode.com

unread,
Jun 3, 2012, 10:12:01 AM6/3/12
to selenium-develope...@googlegroups.com
Updates:
Status: WontFix

Comment #11 on issue 2561 by barancev: XPath Fails to Resolve in Firefox,
but only when PC is connected to a projector
http://code.google.com/p/selenium/issues/detail?id=2561

I'm closing this issue as WontFix as there is no known way to reproduce it.

Feel free to reopen it if you have additional details that could help us to
fix it properly.

sele...@googlecode.com

unread,
Jun 3, 2012, 5:52:29 PM6/3/12
to selenium-develope...@googlegroups.com

Comment #12 on issue 2561 by kris.cr...@gmail.com: XPath Fails to Resolve
in Firefox, but only when PC is connected to a projector
http://code.google.com/p/selenium/issues/detail?id=2561

I can't re-open it because I don't have access.

This CAN be reproduced. You just need to have a laptop with an external
VGA port for dual-display. Why, exactly, would you say that "there is no
known way to reproduce it" when this can EASILY be reproduced?!

Would somebody please re-open this? I'm not sure what @barancev was
thinking, but this bug is reproducable and I clearly outlined how to do
this in the original post.

If you don't want to fix it because you just don't think it's a priority,
then please say so. But don't cite false reasons for closing it; that's
very disrespectful to the person who went to the trouble (i.e. me) of
filing the bug in the first place.


PLEASE RE-OPEN THIS BUG ASAP! Thank you.


sele...@googlecode.com

unread,
Jun 3, 2012, 5:55:00 PM6/3/12
to selenium-develope...@googlegroups.com

Comment #13 on issue 2561 by kris.cr...@gmail.com: XPath Fails to Resolve
in Firefox, but only when PC is connected to a projector
http://code.google.com/p/selenium/issues/detail?id=2561

And if it's not re-opened, then at least let the record show that the OP
(me) **STRONGLY** objects to the closure of this bug due to the deceptive
reason cited for closing it.

sele...@googlecode.com

unread,
Jun 3, 2012, 6:03:32 PM6/3/12
to selenium-develope...@googlegroups.com

Comment #14 on issue 2561 by kris.cr...@gmail.com: XPath Fails to Resolve
in Firefox, but only when PC is connected to a projector
http://code.google.com/p/selenium/issues/detail?id=2561

In case barancev was confused about the repro steps, the ID doesn't have to
be an exact match (in fact it won't be). It just has to be any text input
field on any dev-generated Drupal form.

sele...@googlecode.com

unread,
Jun 4, 2012, 3:25:00 AM6/4/12
to selenium-develope...@googlegroups.com
Updates:
Status: NeedsClarification

Comment #15 on issue 2561 by barancev: XPath Fails to Resolve in Firefox,
but only when PC is connected to a projector
http://code.google.com/p/selenium/issues/detail?id=2561

I'm a professional trainer, and I do selenium workshops on the regular
basis. I use projector to demonstrate Selenium all the time, and I've never
seen this issue. Dual-mode, extended display, projector only -- no problem.

I can claim for sure that it is not a *common* projector-related issue.

It is either related to your page structure, or your environment (zoom
level, screen resolution, etc).

I'm reopening the issue, and request you again to provide a reproducible
test case.

Please create a sample page that demonstrates the issue and can be shared
with us. Or find a page on a public site that can be used to reproduce the
issue.

sele...@googlecode.com

unread,
Jun 4, 2012, 3:36:13 AM6/4/12
to selenium-develope...@googlegroups.com

Comment #16 on issue 2561 by kris.cr...@gmail.com: XPath Fails to Resolve
in Firefox, but only when PC is connected to a projector
http://code.google.com/p/selenium/issues/detail?id=2561

@barancev Did you do your testing in Drupal 6.22 on dev-generated forms (in
PHP created using the $forms array)?

This is generic Drupal stuff. The form has specific content/labels but the
core is unmodified. You should be able to repro this on any Drupal 6.22
form.

Either way, it would not be appropriate to close the bug based solely
on "past experience," regardless of how "vast" that experience may be.
I've been using Selenium for QA since I worked at Microsoft and was in
charge of validating all new Windows builds of PHP release candidates. I
wouldn't have reported this issue without first ruling out other potential
non-Selenium factors.

So please, regardless of any anecdotal past experiences, install Drupal
6.22 and configure a basic form, then repro this issue replacing my ids
(i.e. "omn-push-form") with your own. Like I said, this should be easy to
reproduce if you have a suitable dev environment.

If you attempt to repro the bug, please post your results and the form
conditions here regardless of whether you were successful or not. If you
fail to reproduce it, I should be able to take what you did and narrow down
what might've been different. But unless/until we reach a point where we
simply cannot repro this, or it's decided that the issue simply
isn't "worth" fixing, IMHO this bug should remain open. I'll do whatever I
can to assist you in being able to reproduce this in your dev environment.

sele...@googlecode.com

unread,
Jun 4, 2012, 3:46:04 AM6/4/12
to selenium-develope...@googlegroups.com

Comment #17 on issue 2561 by barancev: XPath Fails to Resolve in Firefox,
but only when PC is connected to a projector
http://code.google.com/p/selenium/issues/detail?id=2561

Issue 4021 has been merged into this issue.

sele...@googlecode.com

unread,
Jun 4, 2012, 4:18:08 AM6/4/12
to selenium-develope...@googlegroups.com

Comment #18 on issue 2561 by barancev: XPath Fails to Resolve in Firefox,
but only when PC is connected to a projector
http://code.google.com/p/selenium/issues/detail?id=2561

Dear sir, I'm not a drupal developer and I can't create a drupal-based site
in a munute.

So I've tried a public drupal demo site first:

FirefoxDriver driver = new FirefoxDriver();
driver.get("http://www.danetsoft.com/demo/contact");
driver.findElement(By.id("edit-name")).sendKeys("tester");
driver.findElement(By.id("edit-mail")).sendKeys("tes...@test.com");
driver.findElement(By.id("edit-subject")).sendKeys("test subject");
driver.findElement(By.id("edit-message")).sendKeys("test message");
driver.findElement(By.id("edit-submit")).click();

This piece of code works with projector as well as without it.

Is this a representative sample?

Can you please try it to check if it works in your environment?

sele...@googlecode.com

unread,
Jun 4, 2012, 2:23:24 PM6/4/12
to selenium-develope...@googlegroups.com

Comment #19 on issue 2561 by kris.cr...@gmail.com: XPath Fails to Resolve
in Firefox, but only when PC is connected to a projector
http://code.google.com/p/selenium/issues/detail?id=2561

I can't blame ya there. Personally, I hate Drupal. But it's widely used
so I have to support it. :/

Unfortunately, that's not a representative sample. Because the module
we're using creates randomized ids for form fields (see "I hate Drupal"
above), it has to go by the XPath. Also, what version of Firefox are you
using? Is it current? Last I tested this was back in September and it was
only the Firefox driver that was breaking, so maybe if we're super-lucky it
could be a browser bug that has since been fixed (*fingers crossed*). But
we'll still need to confirm that of course lol.

Also, could you provide the HTML source? I tried the URL you included but
it returned a Drupal 404 template.

If you try it via XPath and it still works, I should be able to narrow down
something specific in the HTML source that's causing Firefox to vomit.

sele...@googlecode.com

unread,
Jun 4, 2012, 2:53:11 PM6/4/12
to selenium-develope...@googlegroups.com

Comment #20 on issue 2561 by david.bu...@theautomatedtester.co.uk: XPath
Fails to Resolve in Firefox, but only when PC is connected to a projector
http://code.google.com/p/selenium/issues/detail?id=2561

@kris

Please can you attach a test case (a C# File) against a site that we can
access so that this issue can be resolved. Anything short of this is just
going to have a lot of back and forth.

sele...@googlecode.com

unread,
Jun 4, 2012, 2:54:51 PM6/4/12
to selenium-develope...@googlegroups.com

Comment #21 on issue 2561 by barancev: XPath Fails to Resolve in Firefox,
but only when PC is connected to a projector
http://code.google.com/p/selenium/issues/detail?id=2561

Here is the URL I've used in the code: http://www.danetsoft.com/demo/contact

I've tried Firefox versions 3.6.28, 10esr, 12.
I've tried to access the elements by ID, by XPath, by CSS -- all works as
expected.

Let's try to attack the problem from the opposite side -- can you provide
the code of the page where you can reproduce the issue? Please create a
copy of the page in MAFF format [1] and attach it here.

[1] https://addons.mozilla.org/ru/firefox/addon/mozilla-archive-format/

sele...@googlecode.com

unread,
Jun 4, 2012, 3:02:33 PM6/4/12
to selenium-develope...@googlegroups.com

Comment #22 on issue 2561 by kris.cr...@gmail.com: XPath Fails to Resolve
in Firefox, but only when PC is connected to a projector
http://code.google.com/p/selenium/issues/detail?id=2561

I have to be very careful about this because it's proprietary software and
the company is very protective on that front. I'd probably have to write
something new and give you that, otherwise I'd be in breach of contract.
Let me give it some thought though and see what I can do.

sele...@googlecode.com

unread,
Feb 24, 2013, 2:55:54 PM2/24/13
to selenium-develope...@googlegroups.com
Updates:
Status: NotFeasible

Comment #23 on issue 2561 by barancev: XPath Fails to Resolve in Firefox,
but only when PC is connected to a projector
http://code.google.com/p/selenium/issues/detail?id=2561

I don't see what we can do to fix this issue. The only way to fix it is
debugging in the faulty environment, that seems to be very unique. I'm
closing it, sorry.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages