All of my automation is failing on Firefox 8 with the following error:
"(FireFox): ArtOfTest.WebAii.Exceptions.FindException : Find Details:
- FindParam used: [Find logic: Use 'AttributesOnly' where (name=email) ]
- Start Element: [Element: '#comment#:-1']
----> System.ArgumentException : Start reference has to be a valid element and not an EndTag
Parameter name: Reference"
These same tests pass on IE 9. I followed all the instructions at http://www.telerik.com/automated-testing-tools/community/forums/test-studio-express/automation-framework/findexception-in-ie.aspx, but the failure still repros for me on Firefox 8. Please help!
Configuration:
Win7 x64
VS10
Nunit (x86)
Latest Webaii .dlls
Firefox 8
Thanks,
Chris
10 Answers, 1 is accepted
We would be glad to help you on that problem, however we will need a repro on our side. Could you please provide us with step by step instructions on how to reproduce it.
Looking forward to hear from you.
Ivaylo
the Telerik team
Test Studio Trainings
1. Run a test from Nunit that Opens a website in Firefox 8
2. Notice that the test fails upon searching for a text input
Unfortunately this information will not be enough to repro. Could you please send us the complete NUnit test we can load up and execute locally that demonstrates this problem?
Thank you.
Ivaylo
the Telerik team
Test Studio Trainings
"<!--[if lt IE 7 ]> <html class="ie6" xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://ogp.me/ns/fb#" xmlns:gc="http://www.groupcommerce.com/2010/gcml"> <![endif]-->
<!--[if IE 7 ]> <html class="ie7" xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://ogp.me/ns/fb#" xmlns:gc="http://www.groupcommerce.com/2010/gcml"> <![endif]-->
<!--[if IE 8 ]> <html class="ie8" xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://ogp.me/ns/fb#" xmlns:gc="http://www.groupcommerce.com/2010/gcml"> <![endif]-->
<!--[if IE 9 ]> <html class="ie9" xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://ogp.me/ns/fb#" xmlns:gc="http://www.groupcommerce.com/2010/gcml"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html ...>
<!--<![endif]-->"
I think the find is tripping over the comments. Why is that happening? Shouldn't the comments be getting ignored by the Find?
Unfortunately this information doesn't help us a lot. Could you please provide the URL to the page or the NUnit test (along with a sample web page) so we can get a repro?
Thank you.
Ivaylo
the Telerik team
Test Studio Trainings
[Test]
public void SimpleTest()
{
myManager.LaunchNewBrowser(); //Browser must be Firefox to repro the issue
myManager.ActiveBrowser.NavigateTo("http://www.czarrewards.com/national");
myManager.ActiveBrowser.Find.ByName<HtmlInputEmail>("email").Text = "foo@foo.foo";
Thread.Sleep(1000);
}
2. I get the following error:
"WebAiiTestExamples.WebAiiTestExamples.SimpleTest:
ArtOfTest.WebAii.Exceptions.FindException : Find Details:
- FindParam used: [Find logic: Use 'AttributesOnly' where (name=email) ]
- Start Element: [Element: '#comment#:-1']
----> System.ArgumentException : Start reference has to be a valid element and not an EndTag
Parameter name: Reference"
This error seems to happen on any page that has the conditional comments before the html tag. The comments are indeed formatted correctly. Why is Find even considering the comments. Is there a bug in Find when browsing in Firefox?
Thank you for providing us with a sample NUnit test. I tried to reproduce it but I was not able to, I tried with Mozilla Firefox 8 (the version you are using) and the latest version available but I was not able to. This behavior might be due to some local settings on your machine. Please refer to the screenshot attached.
Ivaylo
the Telerik team
Test Studio Trainings
The only thing that comes across my mind is to have a plugin causing the issue with Firefox and I think you should dig into that direction. Please disable any plugin or add-on and review your Firefox settings again.
Kind regards,Ivaylo
the Telerik team
Test Studio Trainings