Drupal Developer, Consultant, Trainer

Testing

Accessing and using Drupal.settings properties in Selenium tests

While writing a Selenium test I needed to access the nid of a newly created node from Drupal.settings to use as part of a URL in another method. Simply trying to access Drupal.settings.nid in the storeEval method didn't work, but dgtlmoon eventually figured it out.