IRC log of #schooltool for Saturday, 2012-04-07

replaceafillaelkner, i'm back00:03
aelknerhey, i was wondering what you know about css versus xpath in our selenium tests00:04
aelknercss is so much nicer to use, but is it any slower?00:04
replaceafillaelkner, i think css is faster than xpath00:05
replaceafilli've been using css more lately00:05
replaceafilli only use xpath for complex things00:05
replaceafilllike this div that contains that other element and so on00:06
aelknerso you don't know of any speed issues00:06
replaceafillaelkner, not really, haven't done any benchmarks though :)00:06
aelknerok, that's cool00:07
aelknerbtw, the case you just mentioned is easy in css,  'div.someclass someelement'00:07
replaceafillno, i was talking about conditions00:07
aelknerso much easier than "//div['@class='someclass']//someeleent00:07
aelknerwell, as long as the condition is class or id, css works well00:08
aelknerand the syntax is so much less likely to trip one up00:09
replaceafillsel = 'td[not(contains(@class, "placeholder"))]'00:09
aelknerso yeah, there are still cases for using xpath00:10
aelkneranyway, i'm really glad about the css helper00:10
* replaceafill too00:10
aelkneri was thinking of adding another helper to Browser, for building the absolute file name00:11
aelknerpassing it __file__ and the filename00:11
aelknerbut perhaps that's overkill00:11
replaceafilli don't think it's very hard to create the path in a test00:11
aelknerit's not, it's four lines, including import os00:12
aelkneri just like economy of lines of code00:13
aelknerit's not important00:13
*** menesis has quit IRC03:20
*** replaceafill has quit IRC04:12
*** replaceafill has joined #schooltool04:27
*** replaceafill has joined #schooltool04:27
*** replaceafill has quit IRC04:51
*** alga has quit IRC05:18
*** menesis has joined #schooltool06:31
*** aks has joined #schooltool11:13
*** alga has joined #schooltool15:29
*** aks has quit IRC16:14
*** alga has quit IRC18:34
*** alga has joined #schooltool18:58
*** alga has quit IRC21:35
*** replaceafill has joined #schooltool21:52
*** alga has joined #schooltool22:13

Generated by 2.15.1 by Marius Gedminas - find it at!