@@ -0,0 +1,2068 @@
+package org.openqa.selenium.qtwebkit;%0A%0Aimport com.google.common.collect.Iterables;%0Aimport com.google.common.collect.Lists;%0Aimport com.google.common.collect.Maps;%0A%0Aimport org.openqa.selenium.qtwebkit.CISCO_Player.RemotePlayer;%0Aimport org.openqa.selenium.remote.RemoteWebElement;%0Aimport org.openqa.selenium.remote.internal.JsonToWebElementConverter;%0A%0Aimport java.util.Collection;%0Aimport java.util.Map;%0A%0Apublic class QtWebKitJsonToWebElementConverter extends JsonToWebElementConverter %7B%0A%0A  public QtWebKitJsonToWebElementConverter(QtWebKitDriver driver) %7B%0A    super(driver);%0A  %7D%0A%0A  public Object apply(Object result) %7B%0A    if (result instanceof Collection%3C?%3E) %7B%0A      Collection%3C?%3E results = (Collection%3C?%3E) result;%0A      return Lists.newArrayList(Iterables.transform(results, this));%0A    %7D%0A%0A    if (result instanceof Map%3C?, ?%3E) %7B%0A      Map%3C?, ?%3E resultAsMap = (Map%3C?, ?%3E) result;%0A      if (resultAsMap.containsKey(%22ELEMENT%22)) %7B%0A        RemoteWebElement element = newRemoteWebElement();%0A        element.setId(String.valueOf(resultAsMap.get(%22ELEMENT%22)));%0A        element.setFileDetector(driver.getFileDetector());%0A        String tagName =  element.getTagName();%0A        System.out.println(%22###########!!!!Yeah!!! tagName!!! %22 + tagName);%0A        if(tagName.equals(%22video%22))%7B%0A          System.out.println(%22###########!!!!Yeah!!! PlayerElement!!!%22);%0A          RemotePlayer player = newRemotePlayerElement();%0A          player.setId(String.valueOf(resultAsMap.get(%22ELEMENT%22)));%0A          player.setFileDetector(driver.getFileDetector());%0A          return player;%0A        %7D%0A        return element;%0A      %7D else %7B%0A        return Maps.transformValues(resultAsMap, this);%0A      %7D%0A    %7D%0A%0A    if (result instanceof Number) %7B%0A      if (result instanceof Float %7C%7C result instanceof Double) %7B%0A        return ((Number) result).doubleValue();%0A      %7D%0A      return ((Number) result).longValue();%0A    %7D%0A%0A    return result;%0A  %7D%0A%0A%0A  protected RemotePlayer newRemotePlayerElement() %7B%0A    RemotePlayer toReturn = new RemotePlayer();%0A    toReturn.setParent(driver);%0A    return toReturn;%0A  %7D%0A%0A%7D%0A

Add QtWebKitJsonToWebElementConverter