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

Python Pandas join aggregated tables -

java - Static nested class instance -

process - Python What is the difference between a Pool of worker processes and just running multiple Processes? -