This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Get set of NSDs from config file | |
* | |
* @return set of NSDs from config file | |
*/ | |
public Set<String> getNSDsSetFromConfig() | |
{ | |
DMLogger.methodStarted(); | |
String jsonTxt = ""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.ddn.autotest.ui.primitives; | |
import java.awt.image.BufferedImage; | |
import java.io.File; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.List; | |
import javax.imageio.ImageIO; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Get list of Solutions Overview names from config file | |
* | |
* @return List<String> - Solutions Overview names | |
* @throws Exception | |
*/ | |
public List<String> getSolutionsOverviewNamesFromConfig() throws Exception | |
{ | |
DMLogger.methodStarted(); | |
// TODO add path for QH DM2Web config (system-config.json) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Get list of Solutions Overview names from config file | |
* | |
* @return List<String> - Solutions Overview names | |
* @throws Exception | |
*/ | |
public List<String> getSolutionsOverviewNamesFromConfig() throws Exception | |
{ | |
DMLogger.methodStarted(); | |
// TODO add path for QH DM2Web config (system-config.json) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BrowserFactory.getExistentWebDriver().switchTo().frame( "outerFrame" ); | |
WebElement ele = | |
BrowserFactory.getExistentWebDriver().findElement( By.cssSelector( "div#sfahciops > .flot-overlay" ) ); | |
File screenshot = ( ( TakesScreenshot ) BrowserFactory.getExistentWebDriver() ).getScreenshotAs( OutputType.FILE ); | |
BufferedImage fullImg = ImageIO.read( screenshot ); | |
Point point = ele.getLocation(); | |
int eleWidth = ele.getSize().getWidth(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.*; | |
import java.awt.image.BufferedImage; | |
import java.io.File; | |
import java.io.IOException; | |
import javax.imageio.ImageIO; | |
public class ParseImg extends Component | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.ddn.autotest.ui.primitives; | |
import java.lang.reflect.Field; | |
import org.openqa.selenium.SearchContext; | |
import org.openqa.selenium.WebElement; | |
import org.openqa.selenium.support.PageFactory; | |
import org.openqa.selenium.support.pagefactory.DefaultElementLocatorFactory; | |
import org.openqa.selenium.support.pagefactory.DefaultFieldDecorator; | |
import org.openqa.selenium.support.pagefactory.ElementLocator; |
NewerOlder