()
| 28 | } |
| 29 | |
| 30 | async isChatInputVisible(): Promise<boolean> { |
| 31 | const selectors = [ |
| 32 | '[data-testid="chat-input-container"]', |
| 33 | '.chat-input-container', |
| 34 | '.chat-input', |
| 35 | 'textarea[class*="chat"]', |
| 36 | ]; |
| 37 | |
| 38 | for (const selector of selectors) { |
| 39 | try { |
| 40 | const element = await $(selector); |
| 41 | const exists = await element.isExisting(); |
| 42 | if (exists) { |
| 43 | return true; |
| 44 | } |
| 45 | } catch (e) { |
| 46 | // Continue |
| 47 | } |
| 48 | } |
| 49 | return false; |
| 50 | } |
| 51 | |
| 52 | async typeMessage(message: string): Promise<void> { |
| 53 | const selectors = [ |
no test coverage detected