Skip to content

Commit 2564582

Browse files
committed
Let the user know that they can disable the CSP if necessary
1 parent 276b25f commit 2564582

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

seleniumbase/fixtures/js_utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,9 @@ def activate_jquery(driver):
125125
# Since jQuery still isn't activating, give up and raise an exception
126126
raise Exception(
127127
'''Unable to load jQuery on "%s" due to a possible violation '''
128-
'''of the website's Content Security Policy '''
129-
'''directive. ''' % driver.current_url)
128+
'''of the website's Content Security Policy directive. '''
129+
'''To override this policy, add "--disable_csp" on the '''
130+
'''command-line when running your tests.''' % driver.current_url)
130131

131132

132133
def are_quotes_escaped(string):

0 commit comments

Comments
 (0)