Creates a {@code WebView} object

@param information the data of the web element
@param webView the web view the text is shown in

@return a {@code WebElement} object with a given text and location
499479
private WebElement createWebElementAndSetLocation(String information, WebView webView){
		String[] data = information.split(";,");
		String[] elements = null;
		int x = 0;
		int y = 0;
		int width = 0;
		int height = 0;
		Hashtable<String, String> attributes = new Hashtable<String, String>();
		try{
			x = Math.round(Float.valueOf(data[5]));
			y = Math.round(Float.valueOf(data[6]));
			width = Math.round(Float.valueOf(data[7]));
			height = Math.round(Float.valueOf(data[8]));	
			elements = data[9].split("\\#\\$");
		}catch(Exception ignored){}

		if(elements != null) {
			for (int index = 0; index < elements.length; index++){
				String[] element = elements[index].split("::");
				if (element.length > 1) {
					attributes.put(element[0], element[1]);
				} else {
					attributes.put(element[0], element[0]);
				}
			}
		}

		WebElement webElement = null;

		try{
			webElement = new WebElement(data[0], data[1], data[2], data[3], data[4], attributes);
			setLocation(webElement, webView, x, y, width, height);
		}catch(Exception ignored) {}

		return webElement;
	}
239384
private static Element createResultElement(final Document document) {
        final Element ttResponse = document.createElementNS("http://jaxrx.org/", "result");
        ttResponse.setPrefix("jaxrx");
        return ttResponse;
    }
1031743
def readInfoElement(self, infoElement, instanceObject):
        
        infoLocation = self.locationFromElement(infoElement)
        instanceObject.addInfo(infoLocation, copySourceName=self.infoSource)
1236117
public WebElement searchForWebElement(final By by, int minimumNumberOfMatches){

		if(minimumNumberOfMatches < 1){
			minimumNumberOfMatches = 1;
		}

		List<WebElement> viewsFromScreen = webUtils.getWebElements(by, true);
		addViewsToList (webElements, viewsFromScreen);

		return getViewFromList(webElements, minimumNumberOfMatches);
	}
334837
private static Element createResultElement(final Document document) {
        return document.createElementNS(JaxRxConstants.URL, JaxRxConstants.JAXRX + ":results");
    }
275795
public BoxWebLink.Info createWebLink(String name, URL linkURL, String description) {
        JsonObject parent = new JsonObject();
        parent.add("id", this.getID());

        JsonObject newWebLink = new JsonObject();
        newWebLink.add("name", name);
        newWebLink.add("parent", parent);
        newWebLink.add("url", linkURL.toString());

        if (description != null) {
            newWebLink.add("description", description);
        }

        BoxJSONRequest request = new BoxJSONRequest(this.getAPI(),
                CREATE_WEB_LINK_URL.build(this.getAPI().getBaseURL()), "POST");
        request.setBody(newWebLink.toString());
        BoxJSONResponse response = (BoxJSONResponse) request.send();
        JsonObject responseJSON = JsonObject.readFrom(response.getJSON());

        BoxWebLink createdWebLink = new BoxWebLink(this.getAPI(), responseJSON.get("id").asString());
        return createdWebLink.new Info(responseJSON);
    }
1048402
@NonNull protected View createLoadingView(View view) {
    return view.findViewById(R.id.loadingView);
  }
551315
public String getWebUrl() {
		if(config.commandLogging){
			Log.d(config.commandLoggingTag, "getWebUrl()");
		}
		
		final WebView webView = waiter.waitForAndGetView(0, WebView.class);

		if(webView == null)
			Assert.fail("WebView is not found!");

		instrumentation.runOnMainSync(new Runnable() {
			public void run() {
				webUrl = webView.getUrl();
			}
		});
		return webUrl;
	}
690922
public CmsUUID getElementView() {

        String elementViewString = getString(CmsEditorConstants.ATTR_ELEMENT_VIEW);
        if (elementViewString == null) {
            return null;
        }
        return new CmsUUID(elementViewString);
    }
1140720
private void prepareWebView() {
        mWebView.getSettings().setJavaScriptEnabled(true);
        mWebView.setVisibility(View.VISIBLE);
        mWebView.setWebViewClient(new WebViewClient() {

            private boolean done = false;

            @Override
            public void onPageFinished(WebView view, String url) {
                // Catch the redirect url with the parameters added by the provider auth web page
                if (!done && url.startsWith(mAppInfo.getRedirectUrl())) {
                    done = true;
                    getCredentials(url);
                    mWebView.setVisibility(View.INVISIBLE);
                }
            }
        });
    }
1334484
private CmsContainerElementBean generateDetailViewElement(
        ServletRequest request,
        CmsObject cms,
        CmsResource detailContent,
        CmsContainerBean container) {

        CmsContainerElementBean element = null;
        if (detailContent != null) {
            // get the right formatter

            CmsADEConfigData config = OpenCms.getADEManager().lookupConfiguration(
                cms,
                cms.getRequestContext().getRootUri());
            CmsFormatterConfiguration formatters = config.getFormatters(cms, detailContent);
            I_CmsFormatterBean formatter = formatters.getDetailFormatter(getType(), getContainerWidth());

            if (formatter != null) {
                // use structure id as the instance id to enable use of nested containers
                Map<String, String> settings = new HashMap<String, String>();
                if (!container.getElements().isEmpty()) {
                    // in case the first element in the container is of the same type as the detail content, transfer it's settings
                    CmsContainerElementBean el = container.getElements().get(0);
                    try {
                        el.initResource(cms);
                        if (el.getResource().getTypeId() == detailContent.getTypeId()) {
                            settings.putAll(el.getIndividualSettings());
                        }
                    } catch (CmsException e) {
                        LOG.error(e.getLocalizedMessage(), e);
                    }
                }

                String formatterKey = CmsFormatterConfig.getSettingsKeyForContainer(container.getName());
                if (settings.containsKey(formatterKey)) {
                    String formatterConfigId = settings.get(formatterKey);
                    if (CmsUUID.isValidUUID(formatterConfigId)) {
                        I_CmsFormatterBean formatterBean = OpenCms.getADEManager().getCachedFormatters(
                            cms.getRequestContext().getCurrentProject().isOnlineProject()).getFormatters().get(
                                new CmsUUID(formatterConfigId));
                        if (formatterBean != null) {
                            formatter = formatterBean;
                        }
                    }
                }
                settings.put(formatterKey, formatter.getId());
                settings.put(CmsContainerElement.ELEMENT_INSTANCE_ID, new CmsUUID().toString());
                // create element bean
                element = new CmsContainerElementBean(
                    detailContent.getStructureId(),
                    formatter.getJspStructureId(),
                    settings,
                    false);
                String pageRootPath = cms.getRequestContext().addSiteRoot(cms.getRequestContext().getUri());
                element = CmsTemplateMapper.get(request).transformDetailElement(cms, element, pageRootPath);
            }
        }
        return element;
    }
414152
private void addViewsToList(List<WebElement> allWebElements, List<WebElement> webElementsOnScreen){

		int[] xyViewFromSet = new int[2];
		int[] xyViewFromScreen = new int[2];

		for(WebElement textFromScreen : webElementsOnScreen){
			boolean foundView = false;
			textFromScreen.getLocationOnScreen(xyViewFromScreen);

			for(WebElement textFromList : allWebElements){
				textFromList.getLocationOnScreen(xyViewFromSet);

				if(textFromScreen.getText().equals(textFromList.getText()) && xyViewFromScreen[0] == xyViewFromSet[0] && xyViewFromScreen[1] == xyViewFromSet[1]) {
					foundView = true;
				}
			}

			if(!foundView){
				allWebElements.add(textFromScreen);
			}
		}

	}
1190893
public void setElementView(String elementView) {

        m_elementView = elementView;
        if (LOG.isDebugEnabled()) {
            LOG.debug("Setting element view to " + elementView);

        }
    }
736640
public BoxWebLink.Info createWebLink(URL linkURL, String description) {
        return this.createWebLink(null, linkURL, description);
    }
574123
public void setInfo(final String info, final boolean isHtml) {

        if (info != null) {
            if (!CmsStringUtil.isEmptyOrWhitespaceOnly(info)) {
                initInfoStyle();
                final Data tooltipData = new CmsFieldTooltip.Data(m_icon, info, isHtml);
                final Panel icon = m_icon;
                final Supplier<Data> dataSupplier = Suppliers.ofInstance(tooltipData);
                installTooltipEventHandlers(icon, dataSupplier);
            }
        }
    }
1095695
public static WebElement createObject(RemoteWebDriver driver, Map<String, Object> ro) {
    String ref = ro.get("ELEMENT").toString();

    String type = (String) ro.get("type");
    if (type != null) {
      String remoteObjectName = "org.uiautomation.ios.client.uiamodels.impl.Remote" + type;

      if ("UIAElementNil".equals(type)) {
        return null;
      }

      boolean isArray = false; // uiObject.has("length");

      Object[] args = null;
      Class<?>[] argsClass = null;

      if (isArray) {
        // args = new Object[] {driver, ref, uiObject.getInt("length")};
        // argsClass = new Class[] {RemoteIOSDriver.class, String.class,
        // Integer.class};
      } else {
        args = new Object[]{driver, ref};
        argsClass = new Class[]{RemoteWebDriver.class, String.class};
      }
      try {
        Class<?> clazz = Class.forName(remoteObjectName);
        Constructor<?> c = clazz.getConstructor(argsClass);
        Object o = c.newInstance(args);
        RemoteWebElement element = (RemoteWebElement) o;
        element.setFileDetector(driver.getFileDetector());
        element.setParent(driver);
        element.setId(ref);
        return (RemoteIOSObject) o;
      } catch (Exception e) {
        throw new WebDriverException("error casting", e);
      }
    } else {
      RemoteWebElement element = new RemoteWebElement();
      element.setFileDetector(driver.getFileDetector());
      element.setId(ref);
      element.setParent(driver);
      return element;
    }


  }
1057234
function getHtmlInfo(element) {
        if (!element)
            return null;
        var tagName = element.tagName;
        if (!tagName)
            return null;
        tagName = tagName.toUpperCase();
        var infos = axs.constants.TAG_TO_IMPLICIT_SEMANTIC_INFO[tagName];
        if (!infos || !infos.length)
            return null;
        var defaultInfo = null;  // will contain the info with no specific selector if no others match
        for (var i = 0, len = infos.length; i < len; i++) {
            var htmlInfo = infos[i];
            if (htmlInfo.selector) {
                if (axs.browserUtils.matchSelector(element, htmlInfo.selector))
                    return htmlInfo;
            } else {
                defaultInfo = htmlInfo;
            }
        }
        return defaultInfo;
    }