ver Jan8th
trying to going on setting up thunderbird, but nothing done by now
This commit is contained in:
@@ -22,7 +22,7 @@ def check_csv(result: str, rules: Dict[str, List[Dict[str, str]]]) -> float:
|
|||||||
unexpect_metric = True
|
unexpect_metric = True
|
||||||
with open(result) as f:
|
with open(result) as f:
|
||||||
reader = csv.DictReader(f)
|
reader = csv.DictReader(f)
|
||||||
|
|
||||||
for rcd in reader:
|
for rcd in reader:
|
||||||
for i, r in enumerate(rules.get("expect", [])):
|
for i, r in enumerate(rules.get("expect", [])):
|
||||||
expect_metrics[i] = expect_metrics[i] or _match_record(r, rcd)
|
expect_metrics[i] = expect_metrics[i] or _match_record(r, rcd)
|
||||||
|
|||||||
34
desktop_env/evaluators/metrics/thunderbird.py
Normal file
34
desktop_env/evaluators/metrics/thunderbird.py
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
#from playwright.sync_api import sync_playwright, Browser
|
||||||
|
#from marionette_driver.marionette import Marionette
|
||||||
|
#import marionette
|
||||||
|
import pyatspi
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
#with sync_playwright() as plwr:
|
||||||
|
#while True:
|
||||||
|
##try:
|
||||||
|
#thunderbird: Browser = plwr.firefox.connect("http://127.0.0.1:6000", timeout=60)
|
||||||
|
#break
|
||||||
|
##except:
|
||||||
|
##pass
|
||||||
|
#for ctx in thunderbird.contexts:
|
||||||
|
#for p in ctx.pages:
|
||||||
|
#print(p.url)
|
||||||
|
|
||||||
|
#thunderbird = Marionette()
|
||||||
|
#print(thunderbird.start_session())
|
||||||
|
#print(thunderbird.chrome_window_handles)
|
||||||
|
#print(thunderbird.window_handles)
|
||||||
|
#print(thunderbird.current_chrome_window_handle)
|
||||||
|
#thunderbird.set_context(Marionette.CONTEXT_CONTENT)
|
||||||
|
#print(thunderbird.current_window_handle)
|
||||||
|
#thunderbird.switch_to_window(thunderbird.chrome_window_handles[0])
|
||||||
|
#thunderbird.switch_to_default_content()
|
||||||
|
#thunderbird.switch_to_frame()
|
||||||
|
#print(thunderbird.get_url())
|
||||||
|
#print(thunderbird.get_window_type())
|
||||||
|
#thunderbird.fullscreen()
|
||||||
|
#print(thunderbird.close())
|
||||||
|
|
||||||
|
#registry = pyatspi.Registry.get_default()
|
||||||
|
#registry
|
||||||
Reference in New Issue
Block a user