anandmeher / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

Not working in hybrid app. #592

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Click the login button. 
2.The hybrid app goes unresponsive.

What is the expected output? What do you see instead?
When you click the login button an alert should be shown. But here after 
clicking the login button the app goes unresponsive.

What version of the product are you using? On what operating system?
robotium 5.1 , Android 4.1.1

Please provide any additional information below.

In this app when we manually click the login button an alert is shown. But when 
we try the same with robotium the apps goes unresponsive. 

Original issue reported on code.google.com by umeshram...@gmail.com on 25 Mar 2014 at 9:44

GoogleCodeExporter commented 9 years ago
I tested with other versions of robotium. I found the issue exists with 4.2 and 
above versions of robotium. Some issue with handling of jsalerts.

Original comment by umeshram...@gmail.com on 26 Mar 2014 at 3:43

GoogleCodeExporter commented 9 years ago
Thanks for reporting this. Would it be possible for you to share an apk that 
exhibits this issue?

Original comment by renasr...@gmail.com on 26 Mar 2014 at 8:31

GoogleCodeExporter commented 9 years ago
Will open up if more information is given. 

Original comment by renasr...@gmail.com on 30 Mar 2014 at 11:27

GoogleCodeExporter commented 9 years ago
@umeshram
4.0 is ok with hybrid alert?

Original comment by carrot11...@gmail.com on 6 May 2014 at 2:56

GoogleCodeExporter commented 9 years ago
Yes... 4.0 is fine. The issue is due to overriding of methods of Web view
client
 On 6 May 2014 20:26, <robotium@googlecode.com> wrote:

Original comment by umeshram...@gmail.com on 17 May 2014 at 10:20

GoogleCodeExporter commented 9 years ago
If we don't override the original client will not get the request. 

Original comment by renasr...@gmail.com on 17 May 2014 at 10:30

GoogleCodeExporter commented 9 years ago
Since you r overiding the other methods alerts are not shown. . Its better
to override jsprompt method only... in that case its working fine...

Original comment by umeshram...@gmail.com on 17 May 2014 at 11:18