I am testing accross multiple browsers. I would like to set a variable called BrowserName, and this defines elements within the script that need to be clicked etc.
For example:
Code: Select all
String GraphPos="";
// Set the co-ordinates of the Graph Location
if (BrowserName == "IE" || BrowserName == "FireFox") {
GraphPos="CenterLeft";
}
if (BrowserName == "Chrome") {
GraphPos="680;284";
}
if (BrowserName == "Safari") {
GraphPos="686;289";
}
Any ideas on how I do this? It might seem simple, but when I tried to assign a global parameter, it looked like it wanted to assign every local called BrowserName to itself. For example:
Global Parameter: BrowserName
I have the option of module variables BrowserName (Login) and BrowserName (Logout)
I would only expect to see a single BrowserName. Do I need to assign every instance of BrowserName (local) to the single BrowserName (global)?
I hope that makes sense.
James