Questions tagged [linktext]

Link Text: A locator strategy to find a web element with the Link Text.

Link Text: A locator strategy to find a web element with the Link Text.

The elements returned are the result of calling querySelectorAll, with argument a elements, with the context object equal to the start node. If this throws an exception, return error with error code unknown error.

Source: Link Text

31 questions
0
votes
1 answer

how to write/print href links with link text/title - javascript

this is my code - not complete. how to write/print href links with link text/title. result like this http://google.com/123.asp 123 http://google.com/456.asp 456 http://google.com/789.asp 789
0
votes
1 answer

How to find element using two link texts that are separated (using Selenium's find element by link text function)

I want to find elements using two partial link texts. I want to do this to separate instances where the first link text is the the same as another one. For example if link text 1 for an element is "Publix Eggs, Large" and link text 2 is "12 ct", and…
Nova42
  • 13
  • 1
  • 4
0
votes
2 answers

find_element() with Link_Text not working using Selenium Python

I am new to selenium whenever I try to find elements using id, name , xpath or anything it gives the same error from selenium import webdriver driver =…
Aman Ghuman
  • 1
  • 1
  • 2
0
votes
1 answer

How to click on 10:00 AM time slot as per the HTML using Python Selenium

HTML: 10:15 AM Screenshot: My test includes following cases Login to ####.live Then click on "My Providers" Then go to "specialties" And finally pick a date to book appointment Here is my…
0
votes
3 answers

How do I select the an element without an ID/text_link/name in selenium?

HTML of the website The HTML code of the element I want to select:
0
votes
1 answer

Exception in thread "main" java.util.NoSuchElementException errorusing Selenium and Java

Below is the code I wrote in Java to perform a test which involves switching to windows handles. package com.Practice; import java.util.Iterator; import java.util.Set; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import…
0
votes
1 answer

Python selenium clicking a button

I am trying to write a python script to automatically download csv using the "Download CSV" button from the below link: https://chartink.com/screener/copy-supertrend-negative-breakout-1103 from selenium import webdriver import pandas as…
mrcool4
  • 83
  • 1
  • 9
0
votes
2 answers

Print url when element is a link in Python-Selenium

I'm using Python3 and Selenium. The xpath below points to a link. I would like to print the URL. If I write print(link.text) I get the displayed text portion of the link only. For example: link.text in the following link would give me "link text"…
Mike C.
  • 1,761
  • 2
  • 22
  • 46
0
votes
1 answer

@FindBy using xpath vs linkText

@FindBy(linkText= "[Enter Country]") WebElement enterCountryMenu1; @FindBy(xpath="//a[text()='Enter Country']") WebElement enterCountryMenu2; This is just for my knowledge, why does the script work if I click the link by xpath element but not with…
zara
  • 99
  • 1
  • 8
0
votes
1 answer

How to handle the a tag in selenium

I am facing the problem for below tag in selenium HTML Code is : Register I tried using LinkText, PartialLinkText, CSS selector, Xpath but it is always showing an error that element click is…
0
votes
4 answers

"TypeError: 'str' object is not callable" using WebDriverWait for link_text in Selenium through Python

This is my first post on Stack Overflow. I have been browsing and searching for every possible answer to this question on SO, and I figured at this point I should just ask a question, as I have been at this wall for days now. I am currently working…
0
votes
4 answers

python selenium find_element_by_link_text, element exists but not found

I'm trying to click this link using selenium in python:
Package "1" - not yet downloaded