Skip to content

Commit 0e4a981

Browse files
committed
when adding a firefox extension, check for the id in the attribute too
Fixes Issue #5978
1 parent accb300 commit 0e4a981

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

py/selenium/webdriver/firefox/firefox_profile.py

+5
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,11 @@ def get_text(element):
357357
entry = node.nodeName.replace(em, "")
358358
if entry in details.keys():
359359
details.update({entry: get_text(node)})
360+
if details.get('id') is None:
361+
for i in range(description.attributes.length):
362+
attribute = description.attributes.item(i)
363+
if attribute.name == em + 'id':
364+
details.update({'id': attribute.value})
360365
except Exception as e:
361366
raise AddonFormatError(str(e), sys.exc_info()[2])
362367

0 commit comments

Comments
 (0)