0

Background

A website I work on has a progress bar that gets an initial value from Drupal, and is then updated to the "correct" value with javascript.

I am writing a test with WebDriverTestBase that should assert both the initial value (before js kicks in) and the updated value (after js run).

Problem

Unfortunately, the test only gives me the html with the updated values. So I cannot assert that the original values were different.

Question

Is there any way to disable javascript temporarily in the test? This way I could have one request to assert the source values and another request to assert the updated values.

Or alternatively, how could I access the source html?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.