开发者

Can you use the typeof operator in selenium?

开发者 https://www.devze.com 2023-01-12 14:12 出处:网络
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.

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

精彩评论

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