có 2 cách để chọn 1 record trong scrollbar(với thẻ select-option):
Cách 1:
actor.attemptsTo(SelectFromOptions.byVisibleText("Red").from("#color"))
Cách 2:
actor.attemptsTo(Select.option("15").from("//select[@name='DateOfBirthDay']"))
Có thể select theo value, hoặc index, hoặc text
Link tham khảo: Link
có 2 cách để chọn 1 record trong scrollbar(với thẻ select-option): Cách 1: actor.attemptsTo(SelectFromOptions.byVisibleText("Red").from("#color")) Cách 2: actor.attemptsTo(Select.option("15").from("//select[@name='DateOfBirthDay']")) Có thể select theo value, hoặc index, hoặc text Link tham khảo: Link