c# - navigation browser goto -
hello working watin , and trying open url getting follwoing exception:
at watin.core.ie.createnewieandgotouri(uri uri, idialoghandler logondialoghan dler, boolean createinnewprocess) @ watin.core.ie..ctor() @ watintesting.program.main(string[] args) in c:\users\admin\documents\visua l studio 2010\projects\watintesting\watintesting\program.cs:line 20
the code before working fine. please allow me know going wrong : in case please allow me know alternative code can utilize same using type : browser
the c# code follow:
using system; using system.collections.generic; using system.linq; using system.text; using watin.core; using watin.core.native.internetexplorer; using system.threading; namespace watintesting { class programme { [stathread] static void main(string[] args) { seek { ie browser = new ie(); browser.goto("http://google.com"); browser.textfield(find.byname("q")).typetext("watin"); browser.button(find.byvalue("google search")).click(); } grab (exception e) { console.writeline(e.stacktrace); thread.sleep(10000); } } } }
please add together missing info watin version , browser instance created (ie instance).
maybe help seek create ie instance parameters:
ie ie = new ie("http://www.google.com", true); //first param url , sec new process
c# watin
No comments:
Post a Comment