Questions tagged [partiallinktext]

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

Partial Link Text: A locator strategy to find a web element with the Partial 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: Partial Link Text

22 questions
2
votes
1 answer

Selenium and LINK_TEXT

I tried to scrapp a cost with a LINK TEXT but my scrapping method can't find the TEXT: budget = budgets.append((driver.find_element(By.LINK_TEXT, 'Total budget/expenditure:')).text) The web site is :…
rocheteau
  • 68
  • 6
2
votes
2 answers

Selenium Unable to locate Element (Partial Text Link)

I am new to Selenium and I try to click a link on a second page (after the login page). The login part works and the browser goes to the next page however on the next page it raises an exception: This is my Traceback: Traceback (most recent call…
1
vote
1 answer

How to locate an element using Selenium by its visible text

I have this common situation where I want to locate an element by it's visible text, but the text is next to an i tag used for icons (not sure if this is valid HTML or not). It's the way a certain button component is set up that's used all over the…
1
vote
3 answers

Python Selenium Webscraping: find_elements_by_xpath returning an empty list

I've taken a few coding subjects in uni and am trying to analyse tennis statistics by learning selenium which is completely new to me. The page I'm using is here (https://www.atptour.com/en/scores/results-archive?year=2021) and I'm followinig a…
Sappy
  • 13
  • 1
  • 3
1
vote
1 answer

Unable to select the link with link_text in selenium with python

I am new to automation and trying to automate a website with links in it. When I tried hardcoding the user name and password and then selecting the link using Link_text, the code worked, But When I tried fetching data from Excel file for user name…
DV123
  • 11
  • 3
1
vote
1 answer

TypeError: Invalid locator error using By.linkText containing dot characters (Selenium)

I've looked around on other SO questions, but I don't see anything that could help me. My error, as the title suggests, is the TypeError: Invalid locator error. Here is part of my code (where I think the problem occurs), so that you can see what is…
1
vote
1 answer

How to Get the href attribute of the element using Selenium and Python

Hello I want to get the Href link inside this HTML code but I couldn't I tried with the XPath but it just returns an error The…
1
vote
1 answer

How do I get my clicks to work on the website https://www.costcobusinessdelivery.com using Selenium through Python

When I run this code in Selenium is simply sits there loading the web page forever. Is anyone able to get this code to work and bring me to the login form? from selenium import webdriver; from selenium.webdriver.support.ui import Select; from…
jest3rz
  • 21
  • 5
0
votes
2 answers

How to click on facebook create new account button using Selenium Script

I am trying to run a selenium script for facebook create new account button. But am not able to click the create new account button via selenium script. Here is the code I am using below. I am getting error…
0
votes
2 answers

How to click on href link using Selenium and Python

I am working on a program that automates logs into to a certain webpage and clicks certain buttons & links to reach a final destination to enter certain values and submit them. I have managed to navigate through the webpages but one of the webpages…
0
votes
3 answers

Selenium Python: Element is not clickable

I am testing a webapp created with python dash using selenium. I am trying to click a tab but always get the ElementClickIntercepted Exception. Note: Of course I stumbled over similiar problems but most times the problem is that the element cannot…
0
votes
1 answer

Correct syntax for By.PARTIAL_TEXT_LINK in Selenium Python

How to click using By.Partial_Text_Link in a proper way? There is probably a syntax error, but pycharm doesn't give me a solution. The searched element is not found, the program stops. The faulty code looks like this: WebDriverWait(driver,…
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
1 answer

How to click on the E-Paper link of the first left element using Selenium Python

I used chrome inspect>select an element in the page then select it and copy xpath address and in python use it for click in element but just refresh page and not work Website url: https://zeitung.faz.net/ and I need to click on E-Paper using…
0
votes
2 answers

Clicking on a link using Selenium Python

Please need your support to click on a link in the following: I tried the below code but doesn't work: web.find_element(By.XPATH,'//*[@id="HUI_i_0"]/table/tbody/tr/td/a').click() It gives me…
1
2