how to set a radio button value in protractor

前端 未结 1 1054
半阙折子戏
半阙折子戏 2021-02-20 04:54

I\'m new to Protractor, I\'m trying to set the radio button value using Protractor. I searched over the internet and the SO for the answers which went vain.

html

1条回答
  •  长发绾君心
    2021-02-20 05:38

    Try:

    element(by.id('radiogrp1')).all(by.tagName('md-radio-button')).get(0).click();
    

    0 讨论(0)
提交回复
热议问题