remove commented out code
wd now returns element objects after execute
use regex test instead of exec