i m using Eclipse... Problem in opening new browser...

Asked by Vaishali

I m using eclipse,,, App app1 = App.open("C:\\Users\\384237\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe");
when i use the above code i m able to open a new chrome page.. if already a page is open then it gets stuck without opening any page...

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Vaishali
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

checked on Windows 8 64 Bit: (Chrome is in Program Files (x86)/Google/Application)

works.
if Chrome is already open, it comes to foreground with a new empty page.

Revision history for this message
Vaishali (vaishoo-vasu) said :
#2

ya.. bt i want to open it and type a url...

Revision history for this message
RaiMan (raimund-hocke) said :
#3

App.open(…)
type("l", Key.CTRL) # lowercase L
paste("the url")
type(Key.ENTER)

Revision history for this message
Vaishali (vaishoo-vasu) said :
#4

if the browser is already open.. new browser is not opening.. it just stuks at the task bar...

Revision history for this message
Vaishali (vaishoo-vasu) said :
#5

I forgot to give App.focus("chrome");