failing to get_elements_by_xpath
Short first test using google to get the hang of SST...
To reproduce:
from sst.actions import *
go_to('http://
write_
simulate_
wait_
vals = get_elements_
print vals
Results:
(SST)
Tests running...
DEBUG:
DEBUG:
DEBUG:
DEBUG:SST:Going to... http://
DEBUG:
DEBUG:
DEBUG:SST:Check text wrote correctly
DEBUG:
DEBUG:
test ... []
DEBUG:
OK (8.103 secs)
Ran 1 test in 8.103s
OK
So it did everything and from sst's perspective the test worked, but the print val statement returned an empty list. If you run the XPATH expression "//ol[@
I think I should be getting back 10 elements in my val list but I am obviously missing something simple. Any help would be helpful!
Jon
PS - this looks like a pretty cool tool which wraps most of the selenium functionality in nice pythonic methods. But it has to work :-)
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Jon Rosen
- Solved:
- Last query:
- Last reply: