Skip to content

Commit

Permalink
Update OrcidBrowser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
amontenegro authored Oct 5, 2023
1 parent c0abb93 commit b593547
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions orcid/OrcidBrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,11 @@ def __init__(self):
self.auth_page = 'https://%s/signin/auth.json' % self.server_name
options = webdriver.FirefoxOptions()
options.add_argument("--headless")
# options.headless = True

if properties.type == "actions":
print('------------------------------------------')
print('Using default firefox and webdriver options')
print(self.signin_page)
print(self.auth_page)
print('------------------------------------------')
try:
self.ff = webdriver.Firefox(options=options)
except Exception as e:
print("Exception occurred:" + str(e))
self.ff = webdriver.Firefox(options=options)
else:
ops = Options()

ops = Options()
ops.binary_location = local_properties.firefoxPath
serv = Service(local_properties.geckodriverPath)
self.ff = webdriver.Firefox(service=serv, options=ops)
Expand Down

0 comments on commit b593547

Please sign in to comment.