// If CiviCase enabled, click 'more' link for context menu pop-up in the widget selector
if ($this->isElementPresent("//table[@id='contact-activity-selector-dashlet']/tbody/tr[1]/td[8]/span[text()='more ']")) {
// click 'Delete Activity' link
// If CiviCase enabled, click 'more' link for context menu pop-up in the widget selector
if ($this->isElementPresent("//table[@id='contact-activity-selector-dashlet']/tbody/tr[1]/td[8]/span[text()='more ']")) {
// click 'Delete Activity' link