mosil / robotium

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

solo.clickOnText doesnot work if the text contains a "+" in between #480

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.inf-raven720p-sample Divx+WMA9.2Lossless.avi
2.
3.

What is the expected output? What do you see instead?
solo.clickOnText should work fine.

What version of the product are you using? On what operating system?
robotium-solo-4.1.jar, windows 7

Please provide any additional information below.

Original issue reported on code.google.com by tgspa...@gmail.com on 4 Jul 2013 at 6:26

GoogleCodeExporter commented 9 years ago

Original comment by renasr...@gmail.com on 4 Jul 2013 at 7:15

GoogleCodeExporter commented 9 years ago
Shall i give this way
solo.clickOnText("\\"+"inf-raven720p-sample Divx+WMA9.2Lossless.avi");
its not working.

Original comment by tgspa...@gmail.com on 4 Jul 2013 at 7:23

GoogleCodeExporter commented 9 years ago
Giving "\\" in between the text is not possible in my case as i am taking the 
inputs from a text file.

Original comment by tgspa...@gmail.com on 4 Jul 2013 at 7:25

GoogleCodeExporter commented 9 years ago
This should solve your problem:

solo.clickOnText(Pattern.quote("Text"));

Original comment by rudolfco...@gmail.com on 5 Jul 2013 at 5:27

GoogleCodeExporter commented 9 years ago
Thanks its working

Original comment by tgspa...@gmail.com on 5 Jul 2013 at 5:50