试图自动化拉使用以下的方法,但拉价值观不能以选择。
方法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";});
垫子-选项的标签是不是在垫子-选择。 这是外面的垫子-选择和内部标记。 是否还有其他的方式来实现自动化的垫子-选择?