It's failing on 3rd condition and I'm not able to understand why.
I tried running the code on my local machine with dummy data, and it seems to produce the correct output.
I'm clearly removing the template class and style attribute from the copy of element having the template class, Line 24-27
package com.codegym.task.task28.task2810;
import com.codegym.task.task28.task2810.model.LinkedinStrategy;
import com.codegym.task.task28.task2810.model.Model;
import com.codegym.task.task28.task2810.model.Provider;
import com.codegym.task.task28.task2810.view.HtmlView;
public class Aggregator {
public static void main(String[] args) {
// Provider provider = new Provider(new LinkedinStrategy());
// Controller controller = new Controller(provider);
//
// controller.scan();
HtmlView view = new HtmlView();
Model model = new Model(view, new Provider(new LinkedinStrategy()));
Controller controller = new Controller(model);
view.setController(controller);
view.emulateCitySelection();
}
}