Query on Module 21 | Selenium Forum
M
Posted on 03/10/2016
In Line 17:
AppKeywords app;

Selenium_Pack_7_July\code\Module 21\Hybrid_Framework\src\main\java\com\qtpselenium\hybrid\Keywords.java

We did not create an object for the class AppKeywords but still we can access the methods from that class
Ex: Line 53
public void executeKeywords(
.......
.....
result=app.openBrowser(data);

}

During execution you will get exception

Therfore we need to create Object for AppKeyword class as below

Keywords.java
------------------
public Keywords(ExtentTest test) {
this.test=test;
app = new AppKeywords(test); // newly added

}

Correct me if i am wrong

M
Replied on 04/10/2016

what is the question?