Select option select

0

Expensive,

I'm trying to select an option on a select with the following code and I can not find a solution.

I can find the element, but do not tell it to select X option.

I'm locating with the following code:

driver.findElementByXPath("//*[@data-ng-model='passoUmCtrl.model.protocoloAtivo.relacionamento']")

How can I select an option?

    
asked by anonymous 01.03.2018 / 23:14

1 answer

1

Expensive,

Solved with the following code:

driver.findElementByXPath("//*[@data-ng-model='passoUmCtrl.model.protocoloAtivo.relacionamento']").AsSelect.selectByValue (1)
    
01.03.2018 / 23:16