Webdriver test - pushing data from the app (Javascript) to the test (Python) -


tl;dr: in webdriver test can pass data js code running in tested app test code (written in python)?

situation: when application hits error state want pass basic details error (things like: stacktrace, error message, etc.) webdriver test code used, instance, in assertion messages, in test.

one way add dummy, invisible, dom element , store data (say) element's text. however, seems kind of hackish. wondering whether there's webdriver api providing functionality along these lines:

  • allowing app pass in <key,value> pairs
  • allowing test lookup value key

in sense followup webdriver test - pushing events/notification test question. main difference here looking webdriver api support polling test code, in previous question looking api support event passing.


Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -