[Checkins] SVN: zc.testbrowser/trunk/src/zc/testbrowser/real.py -
Radio controls should return ItemControl only when searched
by label.
Justas SadzeviÃÂius
justas at pov.lt
Wed Sep 26 12:31:03 EDT 2007
Log message for revision 80114:
- Radio controls should return ItemControl only when searched by label.
- setlectionItem typo
(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-26 16:16:44 UTC (rev 80113)
+++ zc.testbrowser/trunk/src/zc/testbrowser/real.py 2007-09-26 16:31:02 UTC (rev 80114)
@@ -271,10 +271,11 @@
token = self.getControlToken(label, name, index, context_token, xpath)
selectionItem = False
- inputType = self.execute(
- 'tb_tokens[%s].getAttribute("type")' % token)
- if inputType and inputType.lower() in ('radio', 'checkbox'):
- setlectionItem = True
+ if label is not None:
+ inputType = self.execute(
+ 'tb_tokens[%s].getAttribute("type")' % token)
+ if inputType and inputType.lower() in ('radio', 'checkbox'):
+ selectionItem = True
return controlFactory(token, self, selectionItem)
More information about the Checkins
mailing list