Fix a bug in Chrome evaluator
This commit is contained in:
@@ -589,6 +589,10 @@ def get_active_url_from_accessTree(env, config):
|
|||||||
if len(elements) == 0:
|
if len(elements) == 0:
|
||||||
print("no elements found")
|
print("no elements found")
|
||||||
return None
|
return None
|
||||||
|
elif elements[-1].text is None:
|
||||||
|
print("no text found")
|
||||||
|
return None
|
||||||
|
|
||||||
active_tab_url = config["goto_prefix"] + elements[0].text if "goto_prefix" in config.keys() else "https://" + \
|
active_tab_url = config["goto_prefix"] + elements[0].text if "goto_prefix" in config.keys() else "https://" + \
|
||||||
elements[0].text
|
elements[0].text
|
||||||
print("active tab url now: {}".format(active_tab_url))
|
print("active tab url now: {}".format(active_tab_url))
|
||||||
|
|||||||
Reference in New Issue
Block a user