0

エラーが発生しています: java.lang.NoSuchMethodException:

ここに私のコードがあります

public class ManageEnrollmentTest {
    @Test
    public void Test_Filter_By_Active() throws Exception{

        assertTrue("Log in failed", Helper.LoginTest());

        assertTrue("Activation failed", fitlerResults("Active"));

    }

    private Boolean fitlerResults(String dS){
        Boolean isOk = false;
        try{
            JavascriptExecutor js = (JavascriptExecutor)driver;
            js.executeScript("$('#dType').val('36').change().trigger(\"liszt:updated\");;");

            WebElement findButton = driver.findElement(By.id("findDealersBtn"));
            findButton.click();

            Method method = ManageEnrollmentTest.class.getMethod("verifyActive");           //////// Error
            isOk = loadEnrollmentTablePageByPageAndVerify(method);
        }
        catch(Exception e){
            e.printStackTrace();
            isOk = false;
        }
        return isOk;
    }

    private Boolean loadEnrollmentTablePageByPageAndVerify(Method method){
        return (Boolean)method.invoke(this);
    }

    //browse throw all dealers that are currently on page
    private Boolean verifyActive(){
        ....
        ....
        return isOk;
    }
}
4

1 に答える 1