Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android Robotium:searchText与ClickContext_Android_Unit Testing_Robotium - Fatal编程技术网

Android Robotium:searchText与ClickContext

Android Robotium:searchText与ClickContext,android,unit-testing,robotium,Android,Unit Testing,Robotium,我有一个奇怪的情况: 在屏幕上,我可以点击以下字符串:“1年基本许可证($15.00)” 但是下面的代码让我有些头疼: assertTrue(solo.searchText(“1年基本许可证($15.00)”); solo.ClickContext(“1年基本许可证($15.00)”) ClickContext语句的测试失败!(在日志中)说: 找不到1年基本许可证($15.00)。已发现:1年基本许可证($15.00) 有人能给我一些提示让我明白发生了什么 问候,, 阿尔班。我终于发现事情还在继

我有一个奇怪的情况: 在屏幕上,我可以点击以下字符串:“1年基本许可证($15.00)”

但是下面的代码让我有些头疼: assertTrue(solo.searchText(“1年基本许可证($15.00)”); solo.ClickContext(“1年基本许可证($15.00)”)

ClickContext语句的测试失败!(在日志中)说: 找不到1年基本许可证($15.00)。已发现:1年基本许可证($15.00)

有人能给我一些提示让我明白发生了什么

问候,,
阿尔班。

我终于发现事情还在继续;)

这里的一切都围绕着将字符串参数解释为regexp! 因此,这里的解决方案是避开美元字符

再见, 阿尔班