Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculate Sum example fails on IE7 and FF2 #2

Open
GoogleCodeExporter opened this issue Jul 28, 2015 · 6 comments
Open

Calculate Sum example fails on IE7 and FF2 #2

GoogleCodeExporter opened this issue Jul 28, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Run the sample Calculate Sum example using IE7 or FF2.0 on Win XP
2.
3.

What is the expected output? What do you see instead?
Test should pass.


What version of the product are you using? On what operating system?
IE7, FF2.0 on Win XP with SP4

Please provide any additional information below.
Exception in JUnit:
com.thoughtworks.selenium.SeleniumException: ERROR: Threw an exception: 
Object doesn't support this property or method
    at 
com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExcepti
onOrError(HttpCommandProcessor.java:97)
    at 
com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcess
or.java:91)
    at 
com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcess
or.java:262)
    at 
com.thoughtworks.selenium.DefaultSelenium.getEval(DefaultSelenium.java:435)
    at 
com.thoughtworks.selenium.FlashSelenium.call(FlashSelenium.java:55)
    at 
com.thoughtworks.selenium.FlexUISelenium.at(FlexUISelenium.java:62)
    at 
com.examples.FlexUISeleniumTest.verifyFlexAppSumIsCorrect(FlexUISeleniumTes
t.java:44)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
9)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
l.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at 
org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRun
ner.java:99)
    at 
org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner
.java:81)
    at 
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfter
Runner.java:34)
    at 
org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java
:75)
    at 
org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
    at 
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClas
sMethodsRunner.java:66)
    at 
org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunne
r.java:35)
    at 
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner
.java:42)
    at 
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfter
Runner.java:34)
    at 
org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
    at 
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestRe
ference.java:45)
    at 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:
38)
    at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestR
unner.java:460)
    at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestR
unner.java:673)
    at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner
.java:386)
    at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunne
r.java:196)



Original issue reported on code.google.com by sunitkat...@gmail.com on 27 May 2009 at 6:30

@GoogleCodeExporter
Copy link
Author

It fails at following lines:
flexUITester.type("2").at("arg1");
flexUITester.type("3").at("arg2");

Original comment by sunitkat...@gmail.com on 27 May 2009 at 6:32

@GoogleCodeExporter
Copy link
Author

Hi Snitkatkar,

I too getting the same error in IE 6.0 and Mozilla Firefox 3.0.3 versions.
Let me know if you got the solution for the issue.

Thanks
Vijay.P

Original comment by meetvija...@gmail.com on 8 Jul 2009 at 12:22

@GoogleCodeExporter
Copy link
Author

Hi Sunitkatkar,

https://www.blogger.com/comment.g?
blogID=6856830647321234822&postID=6699512121797663320&page=1&pli=1

The above link shows some kind of solution!!!, But I have followed the steps 
given 
by them. It is not working as expected. It shows the same error 

"com.thoughtworks.selenium.SeleniumException: ERROR: Threw an exception: Object 
doesn't support this property or method
    at 
com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrE
rror
(HttpCommandProcessor.java:97)
    at com.thoughtworks.selenium.HttpCommandProcessor.doCommand
(HttpCommandProcessor.java:91)
    at com.thoughtworks.selenium.HttpCommandProcessor.getString
(HttpCommandProcessor.java:262)
    at com.thoughtworks.selenium.DefaultSelenium.getEval
(DefaultSelenium.java:443)
    at com.thoughtworks.selenium.FlashSelenium.call(FlashSelenium.java:57)
    at com.thoughtworks.selenium.FlexUISelenium.at(FlexUISelenium.java:62)
    at CalculateSumTest.sumForValidNumbers(CalculateSumTest.java:41)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall
(FrameworkMethod.java:44)
    at org.junit.internal.runners.model.ReflectiveCallable.run
(ReflectiveCallable.java:15)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively
(FrameworkMethod.java:41)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate
(InvokeMethod.java:20)
    at org.junit.internal.runners.statements.RunBefores.evaluate
(RunBefores.java:28)
    at org.junit.internal.runners.statements.RunAfters.evaluate
(RunAfters.java:31)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild
(BlockJUnit4ClassRunner.java:70)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild
(BlockJUnit4ClassRunner.java:44)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
    at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
    at org.junit.internal.runners.statements.RunBefores.evaluate
(RunBefores.java:28)
    at org.junit.internal.runners.statements.RunAfters.evaluate
(RunAfters.java:31)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run
(JUnit4TestReference.java:45)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run
(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:460)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:673)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run
(RemoteTestRunner.java:386)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main
(RemoteTestRunner.java:196)

It blocks the basic functionality support mentioned by selenium - flex 
interface. 
Since we wanted to test our application with selenium-flex API support, kindly 
provide alternate option to resolve the above issue.

Thanks
Vijay P

Original comment by meetvija...@gmail.com on 15 Jul 2009 at 11:55

@GoogleCodeExporter
Copy link
Author

Hi,

I am also facing the same issue.

I have tried with simple button click & it gives me the same error i.e. Object 
doesn't support this property. If u find any solution plz let me also know.

Thanks in advance..

Original comment by mamtap...@gmail.com on 22 Jul 2009 at 9:21

@GoogleCodeExporter
Copy link
Author

I am having the same problem. If anyone found any solution please mail me to
linksn@yahoo.com

Thank you in advance

Original comment by lin...@gmail.com on 3 Mar 2010 at 4:45

@GoogleCodeExporter
Copy link
Author

I have the same error. 
(I have
windows XP, iexplore 7 and firefox 3.6.3
flex-ui-selenium-0.1.1.jar,
selenium-server_1.0.3.jar
selenium-java-client-driver_1.0.1.jar
SeleniumFlexAPI.swc

 )
I build my flex application with "SeleniumFlexAPI.swc" and still get the same 
error 

selenium = new DefaultSelenium("localhost", 4444, "*iexplore",BASE_URL);
flexUITester = new FlexUISelenium(selenium, SWF_ID);
flexUITester.type("qqq212").at("txt1");
flexUITester.click("forgotLink");

I get the error
ERROR: Threw an exception: Object doesn't support this property or method

it seems it does not go beyond the html data, I was able to get the SWF ID, 
Name, 
widh, or any parameter defined in the html embbed object. but whe try to click 
on an 
ID in the SWF file or type at any id on the SWF file, it does not respond and I 
get 
the error on the first command line (flexUITester.type("1234").at("txt1");)



Original comment by H00...@gmail.com on 27 Apr 2010 at 8:53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant