diff --git a/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/behaviours/pageobjects/PitSummaryView.java b/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/behaviours/pageobjects/PitSummaryView.java index 3ccd32ac..2aee10cd 100644 --- a/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/behaviours/pageobjects/PitSummaryView.java +++ b/tests/org.pitest.pitclipse.ui.tests/src/org/pitest/pitclipse/ui/behaviours/pageobjects/PitSummaryView.java @@ -31,21 +31,21 @@ public PitSummaryView(SWTWorkbenchBot bot) { public String clickBack(String expectedUrl) { showSummaryView(); - bot.toolbarButton(PitView.BACK_BUTTON_TEXT).click(); + bot.viewById(PitView.VIEW_ID).toolbarButton(PitView.BACK_BUTTON_TEXT).click(); bot.waitUntil(new BrowserLoadCondition(expectedUrl)); return getCurrentBrowserUrl(); } public String clickHome(String expectedUrl) { showSummaryView(); - bot.toolbarButton(PitView.HOME_BUTTON_TEXT).click(); + bot.viewById(PitView.VIEW_ID).toolbarButton(PitView.HOME_BUTTON_TEXT).click(); bot.waitUntil(new BrowserLoadCondition(expectedUrl)); return getCurrentBrowserUrl(); } public String clickForward(String expectedUrl) { showSummaryView(); - bot.toolbarButton(PitView.FORWARD_BUTTON_TEXT).click(); + bot.viewById(PitView.VIEW_ID).toolbarButton(PitView.FORWARD_BUTTON_TEXT).click(); bot.waitUntil(new BrowserLoadCondition(expectedUrl)); return getCurrentBrowserUrl(); }