views:

44

answers:

1

I want to do this

if (typeof(variable) == "undefined") {}

does this work in selenium?

+1  A: 

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

txwikinger
ok, that is what I thought but I always get confused with it. How what would it look like in this case?
chromedude