0

i can select element from a drop down list in codeception but somehow it is not showing as selected in box as i think the select operation is somehow not finished.I donot have any submit button so i tried to move my focus to any other element on the page but still the select box stay empty.Below is my code to select item from a dropdown list.

$I->selectOption('//*[@class="ng-scope" and @ng-controller="dataIsland"]/*[local-name()="select"]','partlycloudy');

please help.

shab
  • 989
  • 1
  • 15
  • 31

1 Answers1

0

thanks but i got my answer,below code can help you to select element from drop down list.

$I->pressKey('//*[@xpath to the form]/*[local-name()="select"]','element to select',WebDriverKeys::ENTER);

thanks !

shab
  • 989
  • 1
  • 15
  • 31