Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [c#]

Use for questions about testing using C#. This can include unit tests, integration tests, UI tests. If a programmed test uses C#, and the question relates to testing rather than to code, the C# tag should be used.

-2 votes
0 answers
8 views

Magick.Net issue while capturing full Page screenshot in Selenium with C#

CODE: using OpenQA.Selenium; using System; using System.Collections.Generic; using System.Drawing.Imaging; using System.Linq; using System.Text; using System.Threading....
chinmay k's user avatar
1 vote
1 answer
39 views

Data clean up in selenium

I am doing automation testing of web browsers using selenium and the test includes that i create users, add personal details, approve, recommend and the likes. how do I clean up these data that has ...
Oluwabusayomi Temitope's user avatar
0 votes
0 answers
27 views

Selenium on windows form button click event - Windows form is no longer clickable after launching web browser

I was trying to integrate a selenium test with a windows form app. Code works fine for a button click event. But after chrome driver get open I cant click any thing at the windows form application. Or ...
ChathuD's user avatar
  • 2,147
0 votes
0 answers
96 views

Is there a way to execute end-to-end testing one after the other (not multi-threaded)

We are setting up a new step on our build server to trigger E2E testing, as we did for UT. Some E2E make changes to the test database, so we encounter problems because the tests are not executed one ...
Rabskatran's user avatar
2 votes
1 answer
68 views

How to handle AB testing approach with similar page logic but different locators

I have a test suite that currently runs across different development environments. Recently a complete rewrite of the application was done & deployed to a new environment. The application looks &...
user52533's user avatar
0 votes
1 answer
187 views

Can't find a specific element generated in DevExpress

I am attempting to find an element using this code: try { new WebDriverWait(wdriver, TimeSpan.FromSeconds(10)).Until(ExpectedConditions.ElementExists(By.Id("messageGrid_TL"))); ...
Majkl's user avatar
  • 473
0 votes
0 answers
19 views

How can I check the value of object parameter inside StatusCode response?

Assume we have: return StatusCode(500, new { message= "ApplicationSettings is Null!" }); Now I want to check the message value inside my unit test. How should I do it?
Ramin Bateni's user avatar
-1 votes
1 answer
65 views

Automation of End to end Test with Selenium (for web App) and Appium (For Mobile App Testing)

We have this kind of end to end tests to automate : Log in in Web application. Follow few steps there. Do something in Web app so that logged user in Mobile App gets notification. In Mobile App ...
Ragini's user avatar
  • 99
0 votes
3 answers
429 views

Assertion on Span Tag Value (Selenium Web Driver - C# MSTest - Specflow)

I have a scenario, where I want to Assert the UI is displaying 'Active'. When debugging the assertion, I am trying different methods. This is what I started with: Assert.IsTrue(webdriver.Text.Contains(...
MJB27's user avatar
  • 1
1 vote
0 answers
325 views

Selenium + C# : How to add list value in cookies?

This is my code: IList<IWebElement> program = driver.FindElements(By.XPath("//*[@id='PnlGAPAncillaryPrograms']/table[2]/tbody/tr[1]/td/table/tbody/tr/td[2]")); driver.Manage()....
user51770's user avatar
0 votes
0 answers
260 views

Select multiple values from refreshing list with Selenium webdriver and C#

I have a list with several values. Each time I select a value, the list is refreshed. How can I iterate through the list? This is my code IList<IWebElement> program = driver.FindElements(By....
user51770's user avatar
1 vote
0 answers
389 views

Downloading design step attachments from HP ALM

I was using below code to download attachments for test cases at the HP ALM TestLab folder, But then I find out that attachments can be available at the step level too. So is there any way to download ...
ChathuD's user avatar
  • 2,147
0 votes
0 answers
1k views

Try catch not catching NoSuchElementException

kinda confused. I have a method I created to help me handle various scenarios public void WaitHandler(IWebElement element) { int i = 0; WebDriverWait wait = new ...
getCritical's user avatar
0 votes
0 answers
577 views

How to assert a line that is present on the chrome console?

Basically I am trying to automate if a player receives data from OBS. Besides manual, the best way I can think of how to automate would be to read and confirm that the player is receiving data from ...
DjNewma's user avatar
  • 43
0 votes
1 answer
390 views

android : How to fix? - ConversationToQueryExtension.isEnabledForHostApp():252 Conv2Query not enabled due to current app not in whitelist

I am trying to login android application on emulator hosted on Windows OS. Facing below error : I/ConversationToQueryExtension: ConversationToQueryExtension.isEnabledForHostApp():252 Conv2Query not ...
Narendra Chandratre's user avatar

15 30 50 per page
1
2 3 4 5
32