update xpath

This commit is contained in:
Admin 2025-09-05 15:50:38 +07:00
parent fcc5840163
commit f9b4db8125
3 changed files with 7 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -442,7 +442,7 @@ export class ContentService {
fixedHeightChatInput(retry = 20, interval = 1000) { fixedHeightChatInput(retry = 20, interval = 1000) {
const tryFind = () => { const tryFind = () => {
const el = this.getElementByXPath( const el = document.querySelector(
this.service.elTags.chat_input this.service.elTags.chat_input
) as HTMLElement; ) as HTMLElement;

View File

@ -18,7 +18,8 @@ export class TeamsChatService {
"/html/body/div[1]/div/div/div/div[6]/div[4]/div/div[1]/div/div[3]/div/div[3]/div/div[2]/div/div[2]/div/div/card/div/div/div[2]/div/div[1]/button", "/html/body/div[1]/div/div/div/div[6]/div[4]/div/div[1]/div/div[3]/div/div[3]/div/div[2]/div/div[2]/div/div/card/div/div/div[2]/div/div[1]/button",
reply_btn: '[aria-label="Reply"]', reply_btn: '[aria-label="Reply"]',
chat_input: chat_input:
"/html/body/div[1]/div/div/div/div[6]/div[4]/div/div[1]/div/div[3]/div/div[3]/div/div[2]/div/div[2]/div[1]/div", // "/html/body/div[1]/div/div/div/div[6]/div[4]/div/div[1]/div/div[3]/div/div[3]/div/div[2]/div/div[2]/div[1]/div",
'[placeholder="Type a message"]',
}; };
public getCurrentRoomInfo(): { room_id?: string; room_name?: string } { public getCurrentRoomInfo(): { room_id?: string; room_name?: string } {