nhungpham1512 / automation_testing_beginner

automation testing course aLinh
0 stars 0 forks source link

Select an option trong listbox #6

Closed jacobvn84 closed 1 year ago

nhungpham1512 commented 1 year ago

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