Hi All,I am trying to test google analytics withSelenium WebDriver. Manually on the console of the developer's mode (F12) the GA tag is recorded. Using automation I am trying to captureF12 buttonConsole of the developer windowassert the details of the GA tag.However I do not have any success. Any guidance is much appreciated.
It kind of depends upon what you want to do, I would personally just look for the presence of the GA script:
//script[contains(@src,'google-analytics.com/ga.js')]
If you want to check that it is actually sending events over to google when certain things happen you heading into proxy territory.
From: seleniu...@googlegroups.com [mailto:seleniu...@googlegroups.com] On Behalf Of ES
Sent: 27 March 2013 12:49
To: seleniu...@googlegroups.com
Subject: [selenium-users] Testing Web Analytics with Selenium WebDriver
Hi All,
I am trying to test google analytics withSelenium WebDriver. Manually on the console of the developer's mode (F12) the GA tag is recorded. Using automation I am trying to capture
F12 button
Console of the developer window
assert the details of the GA tag.
However I do not have any success. Any guidance is much appreciated.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/TXtFWWdPLb8J.
For more options, visit https://groups.google.com/groups/opt_out.
1. https://github.com/sahava/gtm-datalayer-test/
- It's in Javascript thus didn't try out
2. https://github.com/janexner/site-infrastructure-tests
Vikram
Perhaps you could blog about this capturing all this in your post and share it.
Blogs are easier to collate info and easier for updating as well.
You could post the blog url here.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/e942c2c6-22b7-4772-b154-fc93a9a72aee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/