S
S
Sergey Blokhin2016-09-19 11:58:27
Google
Sergey Blokhin, 2016-09-19 11:58:27

Why doesn't the ga.getAll() method work in the latest version of React?

In the latest version of ReactJS, I can't execute the code in the JS console ga.getAll();. I'm executing code inside PhantomJS.

driver = Selenium::WebDriver.for :phantomjs
driver.get 'https://www.vezetvsem.ru/booking'
driver.execute_script 'return ga.getAll();'

An error is returned instead of an object:
undefined is not a constructor (evaluating 'ga.getAll()')

The same code works fine in Chrome or an older version of ReactJS.
Any ideas how to solve this problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question