|
2 | 2 | #
|
3 | 3 | # ZAP is an HTTP/HTTPS proxy for assessing web application security.
|
4 | 4 | #
|
5 |
| -# Copyright 2016 the ZAP development team |
| 5 | +# Copyright 2017 the ZAP development team |
6 | 6 | #
|
7 | 7 | # Licensed under the Apache License, Version 2.0 (the "License");
|
8 | 8 | # you may not use this file except in compliance with the License.
|
@@ -30,64 +30,74 @@ def __init__(self, zap):
|
30 | 30 | @property
|
31 | 31 | def option_chrome_driver_path(self):
|
32 | 32 | """
|
| 33 | + Returns the current path to ChromeDriver |
33 | 34 | This component is optional and therefore the API will only work if it is installed
|
34 | 35 | """
|
35 | 36 | return six.next(six.itervalues(self.zap._request(self.zap.base + 'selenium/view/optionChromeDriverPath/')))
|
36 | 37 |
|
37 | 38 | @property
|
38 | 39 | def option_firefox_binary_path(self):
|
39 | 40 | """
|
| 41 | + Returns the current path to Firefox binary |
40 | 42 | This component is optional and therefore the API will only work if it is installed
|
41 | 43 | """
|
42 | 44 | return six.next(six.itervalues(self.zap._request(self.zap.base + 'selenium/view/optionFirefoxBinaryPath/')))
|
43 | 45 |
|
44 | 46 | @property
|
45 | 47 | def option_firefox_driver_path(self):
|
46 | 48 | """
|
| 49 | + Returns the current path to Firefox driver (geckodriver) |
47 | 50 | This component is optional and therefore the API will only work if it is installed
|
48 | 51 | """
|
49 | 52 | return six.next(six.itervalues(self.zap._request(self.zap.base + 'selenium/view/optionFirefoxDriverPath/')))
|
50 | 53 |
|
51 | 54 | @property
|
52 | 55 | def option_ie_driver_path(self):
|
53 | 56 | """
|
| 57 | + Returns the current path to IEDriverServer |
54 | 58 | This component is optional and therefore the API will only work if it is installed
|
55 | 59 | """
|
56 | 60 | return six.next(six.itervalues(self.zap._request(self.zap.base + 'selenium/view/optionIeDriverPath/')))
|
57 | 61 |
|
58 | 62 | @property
|
59 | 63 | def option_phantom_js_binary_path(self):
|
60 | 64 | """
|
| 65 | + Returns the current path to PhantomJS binary |
61 | 66 | This component is optional and therefore the API will only work if it is installed
|
62 | 67 | """
|
63 | 68 | return six.next(six.itervalues(self.zap._request(self.zap.base + 'selenium/view/optionPhantomJsBinaryPath/')))
|
64 | 69 |
|
65 | 70 | def set_option_chrome_driver_path(self, string, apikey=''):
|
66 | 71 | """
|
| 72 | + Sets the current path to ChromeDriver |
67 | 73 | This component is optional and therefore the API will only work if it is installed
|
68 | 74 | """
|
69 | 75 | return six.next(six.itervalues(self.zap._request(self.zap.base + 'selenium/action/setOptionChromeDriverPath/', {'String': string, 'apikey': apikey})))
|
70 | 76 |
|
71 | 77 | def set_option_firefox_binary_path(self, string, apikey=''):
|
72 | 78 | """
|
| 79 | + Sets the current path to Firefox binary |
73 | 80 | This component is optional and therefore the API will only work if it is installed
|
74 | 81 | """
|
75 | 82 | return six.next(six.itervalues(self.zap._request(self.zap.base + 'selenium/action/setOptionFirefoxBinaryPath/', {'String': string, 'apikey': apikey})))
|
76 | 83 |
|
77 | 84 | def set_option_firefox_driver_path(self, string, apikey=''):
|
78 | 85 | """
|
| 86 | + Sets the current path to Firefox driver (geckodriver) |
79 | 87 | This component is optional and therefore the API will only work if it is installed
|
80 | 88 | """
|
81 | 89 | return six.next(six.itervalues(self.zap._request(self.zap.base + 'selenium/action/setOptionFirefoxDriverPath/', {'String': string, 'apikey': apikey})))
|
82 | 90 |
|
83 | 91 | def set_option_ie_driver_path(self, string, apikey=''):
|
84 | 92 | """
|
| 93 | + Sets the current path to IEDriverServer |
85 | 94 | This component is optional and therefore the API will only work if it is installed
|
86 | 95 | """
|
87 | 96 | return six.next(six.itervalues(self.zap._request(self.zap.base + 'selenium/action/setOptionIeDriverPath/', {'String': string, 'apikey': apikey})))
|
88 | 97 |
|
89 | 98 | def set_option_phantom_js_binary_path(self, string, apikey=''):
|
90 | 99 | """
|
| 100 | + Sets the current path to PhantomJS binary |
91 | 101 | This component is optional and therefore the API will only work if it is installed
|
92 | 102 | """
|
93 | 103 | return six.next(six.itervalues(self.zap._request(self.zap.base + 'selenium/action/setOptionPhantomJsBinaryPath/', {'String': string, 'apikey': apikey})))
|
0 commit comments