power_Consumption: Fix failure to load test page.
Presently this test is failing quite frequently because the initial
sanity check for the local web server returns '' instead of the
document title 'Test page'.
Patch adds call to WaitForDocumentReadyStateToBeComplete method after
for expected value.
Patch also refactors chrome instance from intialize method to run_once
so we no longer need to explicitly kill instance in cleanup.
Finally a few pylint bugfixes to appease the pre-commit-check.
TEST=run power_Consumption on samus and it completes successfully.
Reviewed-by: Achuith Bhandarkar <email@example.com>
Reviewed-by: Todd Broch <firstname.lastname@example.org>
Commit-Queue: Todd Broch <email@example.com>
Tested-by: Todd Broch <firstname.lastname@example.org>
(cherry picked from commit 0ac98a72887d9eba096caf2f24dffe68190374b2)
1 file changed