Q
|
I'm trying to call the GetExtPropertiesEx method twice from the same page. But the results I am getting are not as expected. Why?
|
A
|
The GetExtPropertiesEx method can only be called once from the same script. If you need to test multiple properties, you need to use SetExtProperties to ask BrowserHawk to check for everything during the same test.
For example, assume you wanted to test screen size and Flash. You would use the following code:
This is the correct way
bh.SetExtProperties "screen_size,Plugin_Flash"
bh.GetExtPropertiesEx
This is the incorrect way
bh.SetExtProperties "screen_size"
bh.GetExtPropertiesEx
bh.SetExtProperties "Plugin_Flash"
bh.GetExtPropertiesEx
|