Tracking pixels handling
Hi dear colleagues! Meeting problem with loading tracking pixels on driver runs. It is just freezing with message in the bottom status line - "Waiting for www.facebook.com...", "Waiting for *.criteo.com", etc.
What was tried: 0. Driver versions 2.41, 2.42, 2.43 - same story.
- ChromeDriver - same behavior as in FF.
- Selenium run flags - -trustAllSSLCertificates, -browserTimeout, -timeout, -firefoxProfileTemplate (special selenium profile) - no changes.
- VMs, Jenkins Cluster VMs, local machines, other network - same results.
How it can be solved? Any suggestions are really welcome! A lot of sites are using this feature to track user behavior, so it will be helpful for automators to know workaround for that. Will keep posting updates on my investigations here as well. Thanks!
Can it be the firewall you're using that is blocking download of any external resources (from other domains)? I suppose you run website on Jenkins on a machine with a private IP? If that is the case, then such machine can't access internet (e.g. you can't do yum update on it). Am I right?
Problem not here. Machines (Jenkins nodes, local ones) where test are running having full outside access.
Since you're controlling real browser then maybe you can look into it and see what happening with a network (e.g. in Firebug or Inspector).
Yes. In console I can see some issues. Driver sometimes not posting any data back for tr-pix request OR tr-pix request is empty. But at the time I can not bundle it fully with webdriver freezing. Will investigate further.
I doubt that it's Selenium-specific issue because it's controlling existing browser and not restricting it. Try opening that url (what you test) manually and see what happens. Maybe because you're on different domain (that tracking pixels are bound to) they don't initialize properly.
Happens only in webdriver. Real browser opens all links smoothly without any issues. And "funny" thing is that with webdriver freezing FF sends issue data to Mozilla, so they receiving error logs every time I run autotests. Any changes in FF profile "Choose What I share" are resetting back to default after each run.
... and domain which tr-pix are bound to is good advice to check. Thanks.
I'm not using custom Firefox profile myself and don't recommend using it might have issues depending on specific Firefox version in use.
This looks more like a Selenium issue than a Mink driver issue. I suggest you to ask for support to the Selenium team itself: http://www.seleniumhq.org/support/
Agree that its related more to selenium. But anyway seems found workaround for this. Just need to put all this analytic resources to exceptions in host file as advised here - https://groups.google.com/forum/#!topic/selenium-users/nfC1Y43a6Hs - as simple as that! )) A lot of my "stoppers" I found here - http://winhelp2002.mvps.org/hosts.txt - hope this will help smbody in future. Many thanks guys! Seems tick can be closed.