Fix a bug in Chrome evaluator

This commit is contained in:
Timothyxxx
2024-03-08 11:47:14 +08:00
parent 1af9d8911d
commit b8d54e8bac

View File

@@ -589,6 +589,10 @@ def get_active_url_from_accessTree(env, config):
if len(elements) == 0:
print("no elements found")
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://" + \
elements[0].text
print("active tab url now: {}".format(active_tab_url))