Skip to main content

All Questions

1 vote
0 answers
36 views

Selenium XPath Not Contains () Not working correctly [duplicate]

I'm trying to check that a filter works by ensuring that every row of a table contains the correct value in one of it's cells. The xPath I have is the following: var tableBody = testDriver....
Ryan Durrant's user avatar
  • 1,050
0 votes
1 answer
57 views

Read values into a List<string> or DataTable from a Agnostic Grid using Selenium C#

I'm trying to read an Agnostic Grid on a web page using selenium c# and want to store the Text based on the column name. I'm not that great fan of DataTable so I preferred List over DT. Problem: The ...
StackUseR's user avatar
  • 958
0 votes
1 answer
42 views

Selenium WebDriver FindElements(By.XPath()) Not returning any data

I'm trying to reference a link element in the HTML below. The element I'm trying to reference is the one with 'WANT_TO_FIND_THIS_LINK' in it. Using this finds the main div just fine: var productHolder ...
jimmy's user avatar
  • 756
0 votes
0 answers
28 views

The result of the xpath expression is: [object Text]. It should be an element. Cannot capture Xpath for the text after :: (double colons) [duplicate]

I'm trying to capture "News & Events". But I can't get Xpath for the text after :: (double colons) Please refer this image for the html code private IWebElement newsAndEventsHeadding =&...
Kalz's user avatar
  • 1
0 votes
2 answers
242 views

Finding an element using specflow and selenium

I am trying to find the google login button from this url https://marketsmithindia.com/mstool/landing.jsp#/signIn and getting this exception NoSuchElementException I am using Specflow, it is the most ...
Manvinder's user avatar
  • 4,591
1 vote
1 answer
85 views

Unexpected error. Unimplemented Command: xpath locator strategy is not supported'

This issue occurring in desktop automation framework with C# and NUnit with WinApp Driver I have tried changing locator and also applied explicit waits. Used Inspect Object to find the XPath. [enter ...
tanushree fating's user avatar
1 vote
4 answers
216 views

How to identify a certain text inside each element in an iteration of elements using Selenium and C#?

I've been learning automation with C# for some weeks now, though I'm progressing in a slow manner. I'm currently trying to do a certain test using a mock page (automationexercise.com). The page mocks ...
Luciano Valdez's user avatar
1 vote
2 answers
208 views

Clicking Element which is in a <li> element

Hey I am new to Selenium and I am trying to click an Element in a Dropdown Bar but the Error is that "an invalid or illegal selector was specified" This was my last try: IWebElement dropdown ...
Daniel Kalcher's user avatar
-2 votes
1 answer
78 views

What will be an XPath of element containing "9"?

What will be a correct XPath for locating "9" from line "09 Some text"? <div class="callout" data-testid="callout" xpath="1"> <span class=...
user3601310's user avatar
0 votes
2 answers
2k views

How to verify if 'aria-disabled' attribute is present in an element or not using Selenium C#

HTML of the button. <div id="MainTab" aria-disabled='true'> when button is not clickable, aria-disabled = 'true' as: <div id="MainTab" aria-disabled='true'> when ...
Rejoice2023's user avatar
2 votes
2 answers
1k views

Selenium C# select an element inside div

Hello all I have a select where it was binded as follows in UI <div class="choices form-group form-choices" data-type="select-one" dir="ltr" tabindex="-1" ...
Developer's user avatar
  • 8,701
0 votes
1 answer
44 views

Selenium C#: Can't find a button on Trello

I am trying to automate the Trello Activity extension, and I am trying to automatically press the button "Export to CSV" with Selenium. And my code, I am trying to get the button with xPath: ...
tomas jonauskas's user avatar
1 vote
3 answers
921 views

How to click on a autocomplete item from a list using Selenium and C#

The web page https://www.priceline.com/?tab=cars&vrid=7fb0c3635c8e8e7633afe152907a052e has an <input> element. When I click on it and start typing a <div> with a list of items below ...
theateist's user avatar
  • 14.4k
1 vote
1 answer
83 views

Why is my xpath able to find the element at all?

I want to print text of each div with class="Name". The code below prints Name1 three times instead of Name1, Name2 and Name3. Why does my code print Name1 three times? Why is dateInput....
theateist's user avatar
  • 14.4k
1 vote
1 answer
41 views

Unable to locate WebElement using Selenium C#

I've been knocking my head trying to figure out why I can't locate and click this web element! What I'm trying to do is pretty straightforward, I'm trying to click on any item of the following list: ...
Pedro Fernandes's user avatar

15 30 50 per page
1
2 3 4 5
35