Are you able to get activity name of dialogue ? Try to get activity
name of dialogue using
'solo.getCurrentActivity().getLocalClassName().toString()'
If that specific activity is from the your TargetPackage, it should
work fine. Get activity name and then we can see further....
On Jun 13, 3:38 pm, Manasa Muchchatti <
man...@ninetology.com> wrote:
> Hi,
>
> I have a activity- OnlineThemesInstallation to be tested. in that activity
> we have two options-1.Latest and 2.Most Popular Themes to choose. when we
> click on Latest->theme image to get installed, another process is getting
> started(confirmation activity-"Do you want ti install"), from where i cant
> proceed further. But in that same test i want to test for Most Popular
> option also.
>
> I have written by TC as below:
>
> public void testOnlineThemeOptions()throws Throwable{
>
> /* test Most Popular Tab */
> testOnlineTheme();
> solo.clickOnText("Most Popular");
> // assertEquals("Theme images are not
> found",true,solo.getCurrentImageViews());
> solo.clickOnImage(2);
> solo.finalize();
> solo.sleep(5000);
>
> /*test Latest tab */
> testOnlineTheme();
> solo.clickOnText("Latest");
> // assertEquals("Theme images are not
> found",true,solo.getCurrentImageViews());
> solo.clickOnImage(15);
>
> }
>
> Now when it tries to click on Latest that dialogue("Do you want to install
> Theme") is still running. I want to click on Back button of Launcher or do
> some stuff to kill this dialogue.
>
> Anyone have a solution fr this,will be of great help.
>
> Thanks,
> Manasa I M