Skip to content

Instantly share code, notes, and snippets.

@docteurklein
Created July 2, 2011 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save docteurklein/1061702 to your computer and use it in GitHub Desktop.
Save docteurklein/1061702 to your computer and use it in GitHub Desktop.
corresponding sahi step of: When I fill in "knplabs-translator-value" with "It's alive, ALIVE!"
{'origStep':+"_sahi._setValue(_sahi._byXPath(\"(.//*[self::input+|+self::textarea+|+self::select][not(./@type+=+'submit'+or+./@type+=+'image'+or+./@type+=+'hidden')][(((./@id+=+'knplabs-translator-value'+or+./@name+=+'knplabs-translator-value')+or+./@id+=+//label[contains(normalize-space(string(.)),+'knplabs-translator-value')]/@for)+or+./@placeholder+=+'knplabs-translator-value')]+|+.//label[contains(normalize-space(string(.)),+'knplabs-translator-value')]//.//*[self::input+|+self::textarea+|+self::select][not(./@type+=+'submit'+or+./@type+=+'image'+or+./@type+=+'hidden')])[1]\"),+\"It's+alive,+ALIVE!\")",+'step':+"_sahi._setValue(_sahi._byXPath(\"(.//*[self::input+|+self::textarea+|+self::select][not(./@type+=+'submit'+or+./@type+=+'image'+or+./@type+=+'hidden')][(((./@id+=+'knplabs-translator-value'+or+./@name+=+'knplabs-translator-value')+or+./@id+=+//label[contains(normalize-space(string(.)),+'knplabs-translator-value')]/@for)+or+./@placeholder+=+'knplabs-translator-value')]+|+.//label[contains(normalize-space(string(.)),+'knplabs-translator-value')]//.//*[self::input+|+self::textarea+|+self::select][not(./@type+=+'submit'+or+./@type+=+'image'+or+./@type+=+'hidden')])[1]\"),+\"It's+alive,+ALIVE!\")",+'type':+"NORMAL",+'debugInfo':+"",+'stepId':8}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment