On this page https://www.bestbuy.ca/en-ca/category/laptops-macbooks/20352 (this is Laptop result page where many laptops are listed and I am trying to fetch this particular one)
WebElement -- 'HP 15.6" Laptop - Silver (Intel Core i3-1005G1/256GB SSD/8GB RAM/Windows 10)' using xpath and below is my xpath:
//div[contains(text(),'HP 15.6" Laptop - Silver (Intel Core i3-1005G1/256GB SSD/8GB RAM/Windows 10)')]
This xpath correctly identifies the element but when I paste this xpath in eclipse it add backward slash\ after 15.6(i.e. 15.6\") in
xpath("div[contains(text(),'HP 15.6\" Laptop - Silver (Intel Core i3-1005G1/256GB SSD/8GB RAM/Windows 10)')]"))
and that's why my code throws element not found exception. Can anybody help me to solve this issue.