We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
to_capabilities
ie/options.py
1 parent 92256a0 commit b99c470Copy full SHA for b99c470
py/selenium/webdriver/ie/options.py
@@ -322,13 +322,13 @@ def to_capabilities(self) -> dict:
322
caps = self._caps
323
324
opts = self._options.copy()
325
- if len(self._arguments) > 0:
+ if self._arguments:
326
opts[self.SWITCHES] = " ".join(self._arguments)
327
328
- if len(self._additional) > 0:
+ if self._additional:
329
opts.update(self._additional)
330
331
- if len(opts) > 0:
+ if opts:
332
caps[Options.KEY] = opts
333
return caps
334
0 commit comments