All Questions
2,624
questions
0
votes
0
answers
34
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 ...
0
votes
0
answers
146
views
Result throw Namespace prefix 'ext' is not defined
I tried to add XmlDsigXPathTransform to reference but the code signedXml.ComputeSignature() throws an error
Namespace prefix 'ext' is not defined
This is the code:
//Generate the xmlDoc
AXG_Invoice....
0
votes
1
answer
49
views
xpath for multiple nodes selecting substring have an invalid token
xml document containing comment in comments node as:
<Comments>
<Comment>09/28/2021 22:21:31user1 [1] file uploaded </Comment>
<Comment>09/28/2021 22:22:47user2 [2] ...
0
votes
1
answer
37
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 ...
0
votes
0
answers
21
views
System.InvalidOperationException shoots when I give attribute xpath to method XPathSelectElement() [duplicate]
I am currently coding to obtain the attributes and elements of an input xml by use of xpaths.
Consider the below method:
public static XElement GetXElement(XElement element, string xpathKey)
{
try
...
0
votes
0
answers
26
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 =&...
-1
votes
1
answer
33
views
Find a specific node from next parent
I am preparing an application in C# in which I have to deal with xml content.
<Document>
<SW.Blocks.FC ID="0">
<ObjectList>
<SW.Blocks....
1
vote
1
answer
88
views
.NET: Locate node in original XML document from XPath
I am trying to programmatically locate an element in XML text identified by an XPath. That is, not just find the referenced element within the parsed XML structure, but determine the start and end ...
0
votes
2
answers
120
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 ...
0
votes
2
answers
95
views
remove xml tags with XPath in c#
I want to remove some tags from existing XML file using C#. My XML content is below:
<?xml version="1.0" encoding="utf-8"?>
<Invoice xmlns="urn:oasis:names:...
0
votes
0
answers
79
views
Clicking 'Accept All' on Cookie Banner at Joyn.de Using Selenium and C#
I am working on a web automation task using Selenium WebDriver with C#, specifically trying to accept the cookies on the "joyn.de" website by clicking the 'Accept All' button in the cookie ...
-1
votes
2
answers
95
views
update a specific value of xml with c# [duplicate]
I have been working with xml update and insert in c# but cannot implement update specific value. Below is my xml data:
<?xml version='1.0' encoding='UTF-8'?>
<Invoice xmlns='urn:oasis:names:...
1
vote
1
answer
66
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 ...
0
votes
0
answers
45
views
XPath expression to select children of parent in xpath (that works in javascript and in c#)
TLDR: I want to write an xpath expression to select all (at any level) children of parent node using both '..' and 'parent::', that will work in c# and javascript/typescript.
I am limited to xsd 1.0. ...
0
votes
0
answers
37
views
driver.FindElement(By.XPath issue
Below code is not working. The click event not happening. Button identify correctly. What is the issue?
IWebElement searchButton = driver.FindElement(By.XPath("(//button[@class='es-button'])[1]...