开发者

Can you use the typeof operator in selenium?

I want to do this

if (typeof(variable) == "undefined开发者_StackOverflow社区") {}

does this work in selenium?


Yes. You can execute any javascript from selenium with the getEval method.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜