New question #258691 on Sikuli:
https://answers.launchpad.net/sikuli/+question/258691

Environment: Windows 7 + Eclipse Luna + PyDev + Jython 2.7b + Sikuli 1.1.0

My test is like this:

- open browser (IE, Firefox, Chrome)
- enter a url and press enter
- find a login picture in the screen  and highlight it

In Firefox and Chrome works as expected but in IE it doesn't find the picture 
in the screen.

I have put a print statement and I see that after IE is opened, only a small 
rectangle is return as region. In Firefox and Chrome the region is the full 
screen.

These are the two main methods:

    def open_browser_with_url(self, executable, name, url, wait_for):        
        self.stop_browser(name)
        App.open(executable)
               
        found = self.open_url(name, url, wait_for)
        if not found:
            print "could not open url:", url
            exit(1)
            
        found.highlight(2)
        
        return self.get_browser_window(name)

    def open_url(self, name, url, waitFor=None, waitTime=20):
        wait(5)
        browser_window = self.get_browser_window(name)
        
        print "[Rodolfo] " + str(browser_window)
        
        if browser_window:
            #write("#C.l#w1."); write("#B.#w1."); paste(url); write("#N.")
            write("#C.l#w1."); write("#DEL.#w1."); paste(url); write("#N.")
            if waitFor:
                if not browser_window.exists(waitFor, waitTime):
                    return None
                return browser_window.getLastMatch()
        
        print "[Rodolfo] " + str(browser_window)
        
        return browser_window  

This is the output for all browsers, notice that IE shows R[0,0 300x300]:

Chrome:

[log] App.open C:\Program Files 
(x86)\Google\Chrome\Application\Chrome.exe(12308)
[Rodolfo] R[0,0 1920x1048]@S(0)[0,0 1920x1080] E:Y, T:3.0
[info] Write: #C.l#w1.
[info] Write: #DEL.#w1.
[info] Write: #N.
[log] highlight M[479,249 308x231]@S(S(0)[0,0 1920x1080]) S:0.73 C:633,364 
[913/595 msec] for 2.0 secs
----------------------------------------------------------------------
Ran 1 test in 14.548s

OK



FireFox:
log] App.open C:\Program Files (x86)\Mozilla Firefox\firefox.exe(14160)
[Rodolfo] R[0,0 1920x1048]@S(0)[0,0 1920x1080] E:Y, T:3.0
[info] Write: #C.l#w1.
[info] Write: #DEL.#w1.
[info] Write: #N.
[log] highlight M[479,290 308x231]@S(S(0)[0,0 1920x1080]) S:0.99 C:633,405 
[342/42 msec] for 2.0 secs
----------------------------------------------------------------------
Ran 1 test in 13.800s

OK




IE:
[log] App.open C:\Program Files (x86)\Internet Explorer\iexplore.exe(15216)
[Rodolfo] R[0,0 300x300]@S(0)[0,0 1920x1080] E:Y, T:3.0
[info] Write: #C.l#w1.
[info] Write: #DEL.#w1.
[info] Write: #N.
could not open url: https://myurl.com/
======================================================================
ERROR: test_open_browser_with_url (browser_test.IETest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\development\workspace\AutomationFramework\test\browser_test.py", 
line 68, in test_open_browser_with_url
    self.assertTrue(browser.open_with_url(lms_url), "Can't open url with 
browser")
  File "D:\development\workspace\AutomationFramework\src\browser.py", line 95, 
in open_with_url
    return self.driver.open_browser_with_url(self.path_to_executable, 
self.browser_name, url, self.wait_for_image)
  File "D:\development\workspace\AutomationFramework\src\driver.py", line 19, 
in open_browser_with_url
    exit(1)
  File "D:\SikuliX110\Lib\sikuli\Sikuli.py", line 424, in exit
    sys.exit(code)
SystemExit: 1
----------------------------------------------------------------------
Ran 1 test in 30.591s

FAILED (errors=1)


Can I get help to debug or fix this problem?

Thanks,

Rodolfo



-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to