Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #15134 from askeing/957943
Browse files Browse the repository at this point in the history
Bug 957943 - Fix intermittent failure of test_settings_wifi.py
  • Loading branch information
Zac committed Jan 10, 2014
2 parents 32d6b13 + b36c9ff commit cb59838
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -29,7 +29,9 @@ def connect_to_network(self, network_info):
message="No networks listed on screen")

this_network_locator = ('xpath', "//li/a[text()='%s']" % network_info['ssid'])
self.marionette.find_element(*this_network_locator).tap()
this_network = self.marionette.find_element(*this_network_locator)
self.marionette.execute_script("arguments[0].scrollIntoView(false);", [this_network])
this_network.tap()

if network_info.get('keyManagement'):
password = network_info.get('psk') or network_info.get('wep')
Expand Down

0 comments on commit cb59838

Please sign in to comment.