From df811e1358ae71d696dfb266d9ee38fe9a61e9b9 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Wed, 14 Sep 2016 17:02:51 -0700 Subject: [PATCH] Fix test case looking for library id Looking at the text for the strong node didn't work when the actual html was text --- experiments/test_experiments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/experiments/test_experiments.py b/experiments/test_experiments.py index 7ba61dc..9dc1933 100644 --- a/experiments/test_experiments.py +++ b/experiments/test_experiments.py @@ -206,7 +206,7 @@ class ExperimentsTestCases(TestCase): for i in range(0, 8): xpath_expression = '//input[@id="id_lane_set-%d-library"]' input_field = tree.xpath(xpath_expression % (i,))[0] - library_field = input_field.find('../strong') + library_field = input_field.find('../strong/a') library_id, library_name = library_field.text.split(':') # strip leading '#' sign from name library_id = library_id[1:] -- 2.30.2