ruby添加字符串到文件比较tricky,我用的代码如下:
file = File.open(“test.txt”, “a”) ie111.image(:class => /xyz/, :index => 1).click html1 = ie111.text_field(:id, “html_box”).value file << html1 file.close
语言都很相似啊
Anti-spam word: (Required)* To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
语言都很相似啊