js <script> var selectId = document.getElementById("VariantType");//获取ID selectId.onchange = function () { var result = selectId.options[selectId.selectedIndex].innerHTML;//获取选中文本 if (result == "Fusion") { //当变异类型的值为Fusion时,变异值为空
示例脚本: click element id=provinceName #点击地区 省 wait until element is enabled xpath=.//*[@id='provinceNameDataGrid']/tbody/tr #等待 省份下拉框的出现 ${count1} get matching xpath count xpath=.//*[@id='provinceNameDataGrid']/tbody/tr #获取省份下拉值的数量 ${s1} evaluate rando