@@ 224-243 (lines=20) @@ | ||
221 | * @return string |
|
222 | * @throws \InvalidArgumentException |
|
223 | */ |
|
224 | public static function messagesActivityListTableViewButtonSelectorFor( |
|
225 | $message_type_label, |
|
226 | $message_status = self::MESSAGE_STATUS_SENT, |
|
227 | $messenger = 'Email', |
|
228 | $context = 'Event Admin', |
|
229 | $number_in_set = 1 |
|
230 | ) { |
|
231 | $selector = self::messagesActivityListTableCellSelectorFor( |
|
232 | 'action', |
|
233 | $message_type_label, |
|
234 | $message_status, |
|
235 | $messenger, |
|
236 | $context, |
|
237 | '', |
|
238 | $number_in_set |
|
239 | ); |
|
240 | $selector .= "/a/span[contains(@class, 'ee-message-action-link-view')" |
|
241 | . " and not(contains(@class, 'ee-message-action-link-view_transaction'))]"; |
|
242 | return $selector; |
|
243 | } |
|
244 | ||
245 | ||
246 | /** |
|
@@ 258-276 (lines=19) @@ | ||
255 | * @return string |
|
256 | * @throws \InvalidArgumentException |
|
257 | */ |
|
258 | public static function messagesActivityListTableDeleteActionSelectorFor( |
|
259 | $message_type_label, |
|
260 | $message_status = self::MESSAGE_STATUS_SENT, |
|
261 | $messenger = 'Email', |
|
262 | $context = 'Event Admin', |
|
263 | $number_in_set = 1 |
|
264 | ) { |
|
265 | $selector = self::messagesActivityListTableCellSelectorFor( |
|
266 | 'to', |
|
267 | $message_type_label, |
|
268 | $message_status, |
|
269 | $messenger, |
|
270 | $context, |
|
271 | '', |
|
272 | $number_in_set |
|
273 | ); |
|
274 | $selector .= "/div/span[@class='delete']/a"; |
|
275 | return $selector; |
|
276 | } |
|
277 | ||
278 | ||
279 |