Skip to main content
added 16 characters in body
Source Link

how can i capture src in following xml by using cssSelector or Xpath ?

 
<INPUT src="/TelsimGlobal/Menu/image3.gif" type=image>

i tried to execute following ones but always faced with "Unable to find element" error. any suggestion ?

driver.findElement(By.xpath("//img[@src='/TelsimGlobal/Menu/image3.gif']")); driver.findElement(By.cssSelector("[src]"));
driver.findElement(By.cssSelector("a[src='/TelsimGlobal/Menu/image3.gif']"));

driver.findElement(By.xpath("//img[@src='/TelsimGlobal/Menu/image3.gif']"));
driver.findElement(By.cssSelector("[src]"));                                
driver.findElement(By.cssSelector("a[src='/TelsimGlobal/Menu/image3.gif']"));

how can i capture src in following xml by using cssSelector or Xpath ?

 

i tried to execute following ones but always faced with "Unable to find element" error. any suggestion ?

driver.findElement(By.xpath("//img[@src='/TelsimGlobal/Menu/image3.gif']")); driver.findElement(By.cssSelector("[src]"));
driver.findElement(By.cssSelector("a[src='/TelsimGlobal/Menu/image3.gif']"));

how can i capture src in following xml by using cssSelector or Xpath ?

<INPUT src="/TelsimGlobal/Menu/image3.gif" type=image>

i tried to execute following ones but always faced with "Unable to find element" error. any suggestion ?

driver.findElement(By.xpath("//img[@src='/TelsimGlobal/Menu/image3.gif']"));
driver.findElement(By.cssSelector("[src]"));                                
driver.findElement(By.cssSelector("a[src='/TelsimGlobal/Menu/image3.gif']"));
Source Link

how can i capture src in xml by using cssSelector or Xpath?

how can i capture src in following xml by using cssSelector or Xpath ?

i tried to execute following ones but always faced with "Unable to find element" error. any suggestion ?

driver.findElement(By.xpath("//img[@src='/TelsimGlobal/Menu/image3.gif']")); driver.findElement(By.cssSelector("[src]"));
driver.findElement(By.cssSelector("a[src='/TelsimGlobal/Menu/image3.gif']"));