titanium-web-proxy icon indicating copy to clipboard operation
titanium-web-proxy copied to clipboard

AJAX call is not shown and captured while working with selenium

Open Nefcanto opened this issue 5 years ago • 2 comments

I'm using Selenium and Titanium Web Proxy to capture some AJAX calls with specific patterns. I'm using BeforeResponse handler and check e.HttpClient.Request.RequestUri. I constantly find a button on the page via Selenium and click it so that next AJAX call would be made with that pattern and I'll catch it.

Everything works just fine. But after some time (like 5 minutes of execution) those AJAX calls are not captured anymore. I check Chrome's Developers Tools going into Network tab and I can see that those calls are not actually made. But the data on the page gets updated.

How can I debug this? Is it Chrome's bug? or Selenium' bug? or Titanium's bug? I don't know. Have you ever seen something similar?

Nefcanto avatar Mar 02 '19 08:03 Nefcanto

The point is, I can see other AJAX calls that I'm not capturing in the Network tab. And I can log them in BeforeResponse method. But the one's that I'm interested in are not being shown in Network tab, nor are logged in BeforeResponse method.

Nefcanto avatar Mar 02 '19 08:03 Nefcanto

I don't think that this is a TWP bug. Did you find a reason/solution?

honfika avatar Dec 24 '19 14:12 honfika