Normally, when the objects are created dynamically this problem may exist...you will be able to overcome these types of issue by using the Ordinal identifier - INDEX. Try including index property eg.
etc..
Code:
Browser("..").Page("..").Frame("..").Webbutton("html tag:=INPUT", "html id:=ok", "index:=0")Code:
Browser("..").Page("..").Frame("..").Webbutton("html tag:=INPUT", "html id:=ok", "index:=1")
