Title / Description
Code class ChangeAffiliation < Test::Unit::TestCase def setup $browser = Watir::IE.new $browser.maximize() $browser.set_fast_speed load 'LoginControl.rb' @outputfile = File.new($LOGPATH + "\\EditOffice_" + $DateTimeStamp + ".txt", File::CREAT|File::APPEND|File::RDWR) @outputfile.write("\n") @status = 0 end def Select_Affiliation() @currentaff = $browser.span(:id, /CurrentAffiliationLabel$/).text $browser.select_list(:id, /AffiliationDropDownList$/).select_item_in_select_list(:index, @affIndex) @newaff = $browser.select_list(:id, /AffiliationDropDownList$/).getSelectedItems
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code