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 <firstname.lastname@example.org>
Reviewed-by: Todd Broch <email@example.com>
Commit-Queue: Todd Broch <firstname.lastname@example.org>
Tested-by: Todd Broch <email@example.com>
(cherry picked from commit 0ac98a72887d9eba096caf2f24dffe68190374b2)
1 file changed