我应该进一步阅读 - script() 允许你执行像 document.getelement 这样的 javascript - 等等
所以对于将来需要这样做的人
Given driver 'https://ourURL.com/dashboard'
Then match driver.title == 'Dashboard'
* def token = script("document.querySelector('meta[name=\"csrf-token\"]').content")
* print 'token is ' + token