public class GetCssPropertyCommand extends java.lang.Object implements QAFCustomCommand
function getStyle(el,styleProp){
var x = document.getElementById(el);
if (x.currentStyle)
return x.currentStyle[styleProp];
if (window.getComputedStyle)
return
document.defaultView.getComputedStyle(x,null).getPropertyValue(styleProp);
return "";
}
Constructor and Description |
---|
GetCssPropertyCommand() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
doCommand(SeleniumCommandProcessor commandProcessor,
java.lang.String... args) |
java.lang.String |
getCommandName() |
public java.lang.String doCommand(SeleniumCommandProcessor commandProcessor, java.lang.String... args)
doCommand
in interface QAFCustomCommand
public java.lang.String getCommandName()
getCommandName
in interface QAFCustomCommand
Copyright © 2000 Infostretch Corp.