java - How to select an remembered item in the text box with Selenium webdriver? -


how select remembered item in text box selenium webdriver?

hashmap<string, arraylist<integer>> map = new hashmap<string, arraylist<integer>>();         for(int i=0; i<strs.length; i++){             char[] arr = strs[i].tochararray();             arrays.sort(arr);             string t = string.valueof(arr);             if(map.get(t) == null){                 arraylist<integer> l = new arraylist<integer>();                 l.add(i);                 map.put(t, l);             }else{                 map.get(t).add(i);             } 

please try below:

webdriverwait wait = new webdriverwait(driver,30); driver.findelement(by.id("product_quickaddinput")).sendkeys(“00006692”); webelement element = driver.findelement(by.xpath("//div[@id='div_0']")); wait.until(expectedconditions.elementtobeclickable(element)); element.click(); 

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -