I need to create one more response filter during one test scenario. But now when I do this both filters work at the same time. How could I stop or override the previous one without stopping current browser instance?
Code example:
proxy.addResponseFilter((response, contents, messageInfo) -> {
if (messageInfo.getOriginalUrl().contains(keyWord)) {
contents.setTextContents(newResponse);
}
});