Curious about the use case for these two functions.

I think that building a locator is more efficient here but maybe I'm missing your use case.  I would have thought that if you want to check a checkbox with a given text, you do this: 

```py
def mycheckbox(value):
  return "//div[@id='myarea']//input[@type='checkbox' and @value='%']" % text
```

and then you check it by
```py
click(mycheckbox("myvalue"))
```