Object reuse after reloading web page

 SystemUtil.Run  "iexplore.exe"
Set  oBrowser = Browser( "micClass:=Browser" )
Set  oEdit = oBrowser.Page( "micClass:=Page" ).WebEdit( "name:=wd" , "index:=0" )
oBrowser.Navigate  "www.baidu.com"
With  oEdit .Set "
    shishishi "  .Submit
    End
With  oBrowser.Sync
oEdit.init
Hidden method for resynchronizing the test object on the page 
oEdit.Set "http://www .sina.com" //In this way, no error will be reported. In fact, it is because the dom and rice have been loaded. 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326422966&siteId=291194637