[Checkins] SVN: zc.testbrowser/trunk/src/zc/testbrowser/real.py Fix the xpath to look up only descendents of the context node.

Justas Sadzevičius justas at pov.lt
Mon Sep 24 11:29:31 EDT 2007


Log message for revision 79881:
  Fix the xpath to look up only descendents of the context node.
  (Justas, Rocky)
  

Changed:
  U   zc.testbrowser/trunk/src/zc/testbrowser/real.py

-=-
Modified: zc.testbrowser/trunk/src/zc/testbrowser/real.py
===================================================================
--- zc.testbrowser/trunk/src/zc/testbrowser/real.py	2007-09-24 14:59:26 UTC (rev 79880)
+++ zc.testbrowser/trunk/src/zc/testbrowser/real.py	2007-09-24 15:29:31 UTC (rev 79881)
@@ -426,7 +426,7 @@
         if label is not None:
             msg = 'label %r' % label
             token = self.browser.execute(
-                'tb_get_control_by_label(%s, %s, %r, "//input | //option")'
+                'tb_get_control_by_label(%s, %s, %r, ".//input | .//option")'
                  % (simplejson.dumps(label), js_index, self.token))
             if (token not in ('false', 'ambiguity error')):
                 inputType = self.browser.execute(



More information about the Checkins mailing list