Code Snippets

  • Android Silk Test

    In on

    WebView.setWebContentsDebuggingEnabled(true); webView.getSettings().setJavaScriptEnabled(true);

  • Selenium Native Test

    In on

    Mój pierwszy natywny test Selenium

  • Hybrid Application Code add-on

    In on

    WebView.setWebContentsDebuggingEnabled(true); webView.getSettings().setJavaScriptEnabled(true);

  • Silk4J Jenkins

    In on

    build.xml

  • Silk4J-4

    In on

    public void verifyLabelsEff(String expected) { List < DomElement > labels = desktop. < DomElement > findAll("//TH"); List < DomElement >…

  • Silk4J-3

    In on

    public void verifyLabels(String expected) { for (int i = 1; i <= 17; i++) { DomElement lbl = desktop.find("//TH ["…

  • Silk4J-2

    In on

    public void countObjects() { int iCount = 0; iCount += desktop.findAll("//INPUT").size(); iCount += desktop.findAll("//SELECT").size(); iCount += desktop.findAll("//BUTTON").size(); iCount += desktop.findAll("//A").size();…

  • Silk4J-1

    In on

    public void countObjects() { desktop.setOption("OPT_TRUELOG_MODE", 0); int iCount = 0; int i = 0; while (desktop.exists("//BrowserApplication//BrowserWindow//INPUT[" + (i + 1)…

  • Selenium-8

    In on

    @Keyword public void getNumberOfRowsInGrid(OutParameter nrOfRows) { ... nrOfRows.setValue(123); }

  • Selenium-7

    In on

    ${parametername}