目前我有:
def addInfoToStory(idOfStory, *stories)
i = -1
numOfInputs = 9
while i < numOfInputs
stories.each.with_index do |story|
$log.puts "i="+"#{i}"
$log.puts story[i]
$log.puts "i2="+"#{i}"
@browser.div(id: "#{idOfStory}_firstCol").div(class: "tDetEntry", index: i+1).div.double_click
if @browser.div(id: "#{idOfStory}_firstCol").div(class: "tDetEntry", index: (i+=1)).div(class: "formLib1").text_field(:id, "input").set(story[i])
sleep 2
@browser.send_keys(:tab)
else @browser.div(id: "#{idOfStory}_firstCol").div(class: "tDetEntry", index: (i+=1)).div(class: "formLib1").select_list(:id, "select").set(story[i])
sleep 2
@browser.send_keys(:tab)
end
end
end
end
大部分信息都是可以正常工作的文本区域框,但是当我进入下拉菜单时,该值不会改变。任何想法为什么?