Why my test is throwing Exception-Unable to locate element in webdriver?

前端 未结 5 1005
鱼传尺愫
鱼传尺愫 2021-01-24 06:41
package testproject;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.*;
          


        
5条回答
  •  一向
    一向 (楼主)
    2021-01-24 07:22

    remove the dot(.) and star(*) from the xpath and give proper tag name in place of star.

    for example if @id=gb is the id of div element, place div in place of star. Hope it will work.

提交回复
热议问题