Right now i sended a email to you, that is my script, i do not know where are you,but i think you can run my script, but our exterenal is very slow, sometimes the script maybe wrong for other reason. Thank you very much
2010/8/27 Qiannan Zhang <[email protected]> > require 'rubygems' > require 'watir' > require 'win32ole' > require 'test/unit' > require 'jcode' > $KCODE='e' > require 'watir/cookiemanager' > require "watir/watir_simple" > require 'fileutils' > require 'watir/winClicker.rb' > require 'watir/win32ole' > require 'Win32API' > require 'mysql' > > > > > class MarketPlace < Test::Unit::TestCase > > @@user_money="[email protected]" > > @@default_password="123456" > @@clothshop="装扮商城" > @@furniture="家具商城" > > > > @@ie_site="www.gamexiu.com" > @@ie=Watir::IE.new > @@ie.goto @@ie_site > @@ie.maximize > > > @@ie.text_field(:id,"GXFrontpageLoginForm_username").set("#{@@user_money}") > > @@ie.text_field(:id,"GXFrontpageLoginForm_password").set("#{@@default_password}") > @@ie.button(:id,"login").click > > sleep 20 > def teardown > > > Watir::CookieManager::WatirHelper.deleteSpecialFolderContents(Watir::CookieManager::WatirHelper::COOKIES) > > > @temp_file="C:\\Documents\sand\sSettings\\capricorn\\Local\sSettings\\Temporary\sInternet\sFiles" > FileUtils.rm_rf "#...@temp_file}" > > #@@ie.close > > @case_name=name > #...@error_count=test::Unit::TestResult.error_count() > # if @error_count > # @@mysql.query("insert into #{@@mysql_table_results} > vaules('#...@case_name}','Failure','#{add_error()}')") > # end > end > > def test_clothshop > > @@ie.image(:src,"http://www.gamexiu.com/images/clothshop_small.gif > ").click > > > sleep 5 > > #...@fram_cloth=@@ie.frame(:src," > http://web1.beijing.ecitysky.com/yii/market/market/ClothesIndex > ").html.body > > #...@font_message=@fram_cloth.div(:class,"shop_title\sw500").text > #puts @font_message > puts @@ie.frame(:src," > http://web1.beijing.ecitysky.com/yii/market/market/ClothesIndex > ").div(:class,"shop_title\sw500").text > end > end > > > 2010/8/26 Željko Filipin <[email protected]> > >> 2010/8/26 Qiannan Zhang <[email protected]> >> >> > can you give me your another email address ? >> >> Why? Post you script here. If it can not be public I can not help you. >> >> Željko >> >> -- >> Before posting, please read http://watir.com/support. In short: search >> before you ask, be nice. >> >> You received this message because you are subscribed to >> http://groups.google.com/group/watir-general >> To post: [email protected] >> To unsubscribe: >> [email protected]<watir-general%[email protected]> >> > > -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: [email protected] To unsubscribe: [email protected]
