Skip to content

Commit

Permalink
Correct Length conditional when filtering in PhantomJS. Fixes #1817
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomatedTester committed Mar 16, 2016
1 parent ddcba0f commit a748927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/phantomjs/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __init__(self, executable_path, port=0, service_args=None, log_path=None):


def _args_contain(self, arg):
return len(filter(lambda x:x.startswith(arg), self.service_args)) > 0
return len(list(filter(lambda x:x.startswith(arg), self.service_args))) > 0

def command_line_args(self):
return self.service_args + ["--webdriver=%d" % self.port]
Expand Down

0 comments on commit a748927

Please sign in to comment.