java - Selenium Webdriver - how to click a value in a Wijmo combobox? -
I'm unable to find out how it looks like the use of VISCO combobox input
tag I have tried to use .sendkeys ()
and new select ()
.
Even if I use .sendKeys ()
, I can determine the value of Cambodia but this is not a value to 'click' is. I should be able to be able to do this.
iDriver.findElement (By.id ("aircraft")) .seendKeys (aRegistrationCode);
I also tried to use it, but it does not work either:
New selection (iDriver.findElement (By.id ("Plane")) .selectByVisibleText ("REG000");
@looksch - Here's the snippet of the html source:
& lt; Wij-combobox style = "height: 28px; width: 240px;" Id = "plane" data-source = "aircraft" select = "onRegCodeChange" drop-down-alt = "150" drop-down-width = "200" & gt; & Lt; Data & gt; & Lt; Label bind = "code" & gt; & Lt; / Label & gt; & Lt; Value bind = "id" & gt; & Lt; / Value & gt; & Lt; / Data & gt; & Lt; / Wij-told & gt;
@looksch - This combo box depends on the previous one that can be enabled for the selected value:
& lt; Wij-combobox style = "height: 28px; width: 240px;" Id = "addAtRiskReason" select "Data-Source =" atRiskReasons "=" onReasonChange "disabled =" {{reasondisabled}} "drop-down-height =" 150 " Drop-down-width = "200" auto-complete = "true" & gt; & Lt; Data & gt; & Lt; Label bind = "name" & gt; & Lt; / Labels & gt; & Lt; Value bind = "id" & gt; & Lt; / Value & gt; & Lt; / Data & gt; & Lt; / Wij-told & gt;
You can try to set the selectedIndex property of WijComboBox using jQuery . Here's the link:
Comments
Post a Comment