พยายาม automating dropdown ใช้ด้านล่างนี้วิธีการขอแต่ง dropdown ค่าที่ไม่ถูกเลือกไว้
วิธีการออกมาตอน 1:
const comboOption = Selector("mat-option").child("span").withExactText("Hello");
await t.click(comboOption);
วิธีการที่ 2:
ClientFunction(() => {
document.getElementsByClassName('mat-option-text')[0].innerText = 'Hello';
document.getElementsByClassName('mat-option-text')[0].click();
return "Hello";});
ครองจาน-กตัวเลือกป้ายกำกับคือไม่ได้อยู่ในรองจาเลือก. มันอยู่ข้างนอกรองจาเลือกและภายใน div ป้ายกำกับ มีทางอื่นเพื่อประสบความสำเร็จในส่ว automating รองจาน-กตัวเลือก?