internet explorer 9 - TestComplete 8 and IE 9: handling two processes -
launching ie9 url find 2 processes started; parent , kid process. in testcomplete's objectbrowser both processes have page node, , related children.
in silverlight aut(application under test) there datagrid, need scroll. check scrollbar before attempting scroll grid.
however different results depending on process use.
aqobject.issupported( sys.process("iexplore", 1).page("https://localhost/url/" ).panel("silverlightcontainer" ).object(0 ).uiaobject("popup" ).uiaobject("x" ).uiaobject("tab" ).uiaobject("tabitem", 2 ).uiaobject("steplist" ) , "verticalscrollpercent") aqobject.issupported( sys.process("iexplore", 2).page("https://localhost/url/" ).panel("silverlightcontainer" ).object(0 ).uiaobject("popup" ).uiaobject("x" ).uiaobject("tab" ).uiaobject("tabitem", 2 ).uiaobject("steplist" ) , "verticalscrollpercent")
one of these homecoming true, other false. doesn't seem matter how much refresh world sys.refresh
or command sys.process...uiaobject("steplist").refresh
, 1 fail while other passes.
this odd, work around if predictable, isn't. parent process tree works, child.
my question is..
what going on? how decide @ point of launching app process utilize automation? how else accomplish goal of scrolling list (so can find row want) without experiencing problem?
this occurs because of net explorer's lcie feature (loosely-coupled net explorer). makes net explorer have main process , separate process every opened web page. can find more info on feature along details on how disable in preparing net explorer web testing help topic.
also, can upgrade instance of tool testcomplete 9. version allows accessing page object regardless of type of browser , index of instance. example:
var page = sys.browser().page("http://www.google.com");
internet-explorer-9 testcomplete
No comments:
Post a Comment