Closed
Bug 1080704
Opened 10 years ago
Closed 9 years ago
Marionette Search.go_to_url does not clean the url bar before typing.
Categories
(Firefox OS Graveyard :: Gaia::UI Tests, defect)
Firefox OS Graveyard
Gaia::UI Tests
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: nbp, Unassigned)
Details
Attachments
(1 file)
1.53 KB,
patch
|
Details | Diff | Splinter Review |
When running tests which are doing: def test_octane(self): search = Search(self.marionette) search.launch() print "Visit url %s" % self._start_page browser = search.go_to_url(self._start_page) The test no longer works because the page cannot be accessed "Object not found!", the reason being that another test was run before the current one and the address bar kept the previous url. This cause the search.go_to_url to start typing the url in the middle of the previous one which does not correspond to any valid address. This issue started after Oct 8 12:00 (UTC+2), and breaks AWFY.
Comment 1•9 years ago
|
||
I'm not sure where this test framework lives. I'm assuming that this is some code that is within tests/ though, so moving into the UI Tests component for now.
Component: Gaia::Search → Gaia::UI Tests
Comment 2•9 years ago
|
||
This should work according to the code: http://mxr.mozilla.org/gaia/source/tests/python/gaia-ui-tests/gaiatest/apps/homescreen/regions/search_panel.py#48
Comment 3•9 years ago
|
||
This is worksforme (using the trunk build from monday or something) With the "# self.marionette.find_element(*self._rocketbar_input_locator).clear()" part commented out, the search input is not cleared with the test_browser_search.py test. When not commented out, the search input is cleared just fine, when the next go_to_url is called. pip freeze: blessings==1.6 boto==2.33.0 gaiatest==0.31 httplib2==0.9 manifestparser==0.8 marionette-client==0.8.5 marionette-transport==0.4 mozcrash==0.14 mozdevice==0.44 mozfile==1.1 mozhttpd==0.7 mozinfo==0.7 mozlog==2.8 moznetwork==0.24 mozprocess==0.21 mozprofile==0.22 mozrunner==6.5 moztest==0.7 mozversion==1.1 oauth2==1.5.211 pep8==1.5.7 plivo==0.9.6 requests==2.4.3 treeherder-client==1.0 unpyclib==0.8.1 wsgiref==0.1.2
Comment 4•9 years ago
|
||
Nicolas, are you still seeing this issue? It is wfm.
Flags: needinfo?(nicolas.b.pierron)
Comment hidden (obsolete) |
Reporter | ||
Comment 6•9 years ago
|
||
I will look again, at the moment I am using a work-around which reboot the phone between each attempts of running the tests.
Reporter | ||
Comment 7•9 years ago
|
||
I just tested again, and now the address bar is cleared before typing anything new.
Status: NEW → RESOLVED
Closed: 9 years ago
Flags: needinfo?(nicolas.b.pierron)
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•