如何识别是否通过javascript设置cookie(客户端)

时间:2014-02-18 09:46:45

标签: javascript python selenium web-scraping

我正在使用selenium和python。我需要知道是否通过javascript设置了特定的cookie。有没有办法做到这一点?

1 个答案:

答案 0 :(得分:0)

我使用https://github.com/carhartl/jquery-cookie完美无缺。

阅读Cookie:

$.cookie('the_cookie'); // => "the_value"
$.cookie('not_existing'); // => undefined