Questions tagged [atata]
Atata is C#/.NET web UI test automation full featured framework based on Selenium WebDriver. It uses fluent page object pattern.
51
questions
0
votes
0
answers
61
views
Selenium tests fails in docker container on Azure piplines
I am trying to run selenium tests in docker container on azure piplines.
I used .net 6.0 sdk image and then install chrome with chromedriver on it, then I run dotnet test command.
The main problem is ...
1
vote
1
answer
17
views
Index of a table row when found by predicate
I'm finding a TableRow with a predicate thus:
Table.Rows[r => r.name == "blablabla"]
Is there any way to get the index of the row it finds as an int?
0
votes
1
answer
37
views
Atata Framework: DragAndDrop doesn't work
I am trying to implement simple drag an drop operation on this site with Selenium examples: https://demoqa.com/droppable.
How it looks like:
And seems, my implementation of drag and drop with Atata ...
0
votes
1
answer
23
views
Pass custom screenshot consumer though json config
Hi,
I use Atata framework with ExtentReports, based on this project: https://github.com/atata-framework/atata-samples/tree/master/ExtentReports
Now I want switch from fluent context build to json ...
0
votes
0
answers
36
views
How to handle or recover/retry after "Selenium.StaleElementReferenceException" error with Atata?
I'm writing a test suite using Atata and am receiving this exception "Selenium.StaleElementReferenceException: stale element reference: element is not attached to the page document" trying ...
1
vote
2
answers
24
views
Specifying non-local time zone in GlobalConfiguration fails on Linux
My tests will be running on a variety of machines/containers scattered all across the USA, so I would like them all to log their time in Eastern Time. If I do this:
AtataContext.GlobalConfiguration....
1
vote
1
answer
21
views
Odd screenshot naming difference between linux and windows
Here are snippets from two different test logs.
Linux does this on a screenshot:
2022-01-07 19:34:02.6043 INFO - Screenshot saved to file "/source/fs.automation.fsol/FS.Automation.Tests/bin/...
0
votes
1
answer
48
views
XPath with text() to get specific text node
<td style="width: 40.42%;" id="ember193" class="lt-cell align-left ember-view">
<div class="inline-block ember-tooltip-target">
<i class="fa fa-fw fa-lg valid"></i>
...
0
votes
1
answer
27
views
Odd Table implementation - can Atata support this oddness?
I have a table thus:
<tbody>
<tr class="bg-light">
<th scope="col" width="300">Custom Field Name</th>
<th scope="col">Data</th>
</tr>
<...
0
votes
1
answer
34
views
AutoSetUpConfiguredDrivers occasionally throws an 'Index out of range" Exception
Here's the content of my GlobalSetup - occasionally when I run, the call to AutoSetUpConfiguredDrivers throws an exception:
System.ArgumentOutOfRangeException: 'Index was out of range. Must be non-...
0
votes
1
answer
29
views
How to assert disabled option from the list?
I need advice, how to assert the disabled option from the list that it is disabled using Atata or else?
<option value="Test" disabled="">Test</option>
0
votes
1
answer
33
views
ScrollTo() not scrolling in FireFox
Here I am with another FireFox anomaly…
As I enter data on the page, the Save button scrolls out of view, so before clicking the Save button, I call Save.ScrollTo() – this works fine in Chrome and ...
0
votes
1
answer
27
views
ControlList which contains 2 items returns first items Text element for both items
I have the following code:
public ControlList<PaymentItem, _> PaymentGroup { get; private set; }
[ControlDefinition("div[@id='grant-details']//div", ContainingClass = "payment-...
1
vote
1
answer
35
views
FireFox NumberInput and TextInput behavior when using Set() with decimal points
I have a NumberInput defined thus:
[FindByXPath("//input[@class='form-control ']")]
public NumberInput<_> Amount { get; private set; }
For this input in the SUT:
<input id="...
1
vote
1
answer
25
views
Validating text after <br> in Atata
I have this table cell on my page:
<td>
<strong>Some Text</strong>
<br>random description
</td>
I'd like to come up with a way to validate the text after the br and have ...
0
votes
1
answer
85
views
Getting Atata working with Microsoft Edge (Chromium)
It appears that the version of Selenium included with Atata does not support the EdgeOption "UseChromium", and when I try to use the Edge Driver, the test run fails unless I rename the ...
0
votes
1
answer
167
views
Getting an IEnumerable of all values in a certain column
I'm currently working with the Atata framework and using a Kendo grid. What I'm trying to achieve is getting an IEnumerable or a collection containing all the values in a column. The kendo grid is ...
0
votes
1
answer
45
views
How to reset my environmental path to default in visual studio 19? I'm getting the following error even when using Atatas DriverSetup.AutoSetUp()?
How can I reset my environmental path to default in Visual Studio 2019? Because I'm getting the following error even when using Atatas DriverSetup.AutoSetUp():
Session not created: This version of ...
0
votes
1
answer
66
views
How to use Atata for just a basic auto browser detect and then auto driver setup? I'm reading the documentation and not having much luck making sense
Does anyone have any experience using atata at all? Someone recommended I use it for setting up a chrome driver automatically. I'm looking for the most basic way to detect what chrome version the user ...
0
votes
1
answer
73
views
How can I do a log-in through ATATA
In Selenium, the following code is supposed to get you to an alert. Specifically, a log-in pop-up:
Alert alert = driver.switchTo().alert();
How does this work using Atata?
2
votes
0
answers
142
views
how to find shadow-root element in Chrome using Atata lib [duplicate]
So I have an element in the DOM this is how it actually looks in chrome
I was trying to locate it like this
[FindById("someId"), As = FindAs.ShadowHost, Visibility = Visibility.Any]
public ...
0
votes
1
answer
76
views
Atata Attach to Browser Instance
I know there is a way in Selenium to launch a browser (at least in Chrome) and later attach to that instance. Can you do the same thing through Atata?
2
votes
1
answer
169
views
Atata. C#. How to open new tab?
How to open a new tab in the Chrome browser?
I can open at the beginning of a test:
AtataContext.Configure()
.UseChrome()
.WithArguments("new tab")
I ...
1
vote
1
answer
396
views
NUnit Selenium webdriver is not closed after running all tests
I am trying to open browser, run several tests and close browser. My problem is that browser stays open after running all tests. What is the correct way of closing browser? If I put [Setup] and [...
1
vote
1
answer
171
views
How do we handle jQuery autocomple with ATATA?
Here is the input:
These are the results from predictive search
I could not find a better way to handle JQuery autocomple input in ATATA framework.
If I do without the framework, I could have done ...
0
votes
1
answer
64
views
How to run Chrome as a different user
I'm running the automation test using Atata framework in a domain network which automatically detects the current user using Windows Authentication so we kind of facing the issue not be able to use a ...
1
vote
2
answers
638
views
Unable to locate element using ID, XPath and CSS Selector
I am using atata framework with C#. I am trying to locate web element to select all rows but neither Id, CSS Path or XPath are able to find.
I have used ID, XPath and CSS Selector
[FindById("com....
0
votes
1
answer
162
views
Using Atata Framework , Can we do database operations like connecting to database and checking the records in table?
Using Atata framework, can we connect to database and perform database operations?
I was not able to find any template related to database in atata framework tutorial.
I know that we can connect to ...
0
votes
1
answer
94
views
How to search by table column that has spaces in the name?
I am building a test that is supposed to search through a table and find an object based on the column name. The problem is, the column name has a space in it, for example: "Friendly name"
I am ...
1
vote
1
answer
142
views
Atata - How to define alert in page class?
I want to test the following application: https://romashov.tech/chat
This is the code of my MainPage:
using Atata;
using _ = Chat.Tests.Model.MainPage;
namespace Chat.Tests.Model
{
[Url("")]
...
-1
votes
1
answer
127
views
Atata - Having difficulty prioritizing Tests in Atata framework
I am new to Atata framework. We are using Visual Studio (C#) for our Selenium Automation. I need help with prioritizing my tests. I have multiple tests in my test class. I want to run this in ...
1
vote
2
answers
280
views
How to set content inside ckeditor using Atata framework?
I am trying to set content inside ckeditor, to be precise inside <body> of an <iframe>, but once when I switch to frame, system throws: NoSuchElementException. I have tried to find element ...
0
votes
1
answer
110
views
Atata: How to skip NoSuchElementException?
How to skip NoSuchElementException?
Or maybe can you elaborate how to initialize controls only before access them?
It doesn't work for me:
[FindByClass("profile"), WaitFor(on: TriggerEvents....
2
votes
1
answer
225
views
Atata: Unable to locate CheckBox elements
I receive an error when I use [VerifyExists] on a CheckBox element, although when I use the XPath that is generated via the framework i can find the element.
Error message:
Message: OpenQA....
1
vote
1
answer
86
views
Can I use [VerifyExists(TriggerEvents.AfterClick)] on a web element different than the one I am verifying?
I have several elements that are NOT displayed until I click a button.
My question is:
Can I use an attribute like
[WaitFor(Until.Visible,TriggerEvents.AfterClick)]
or
[VerifyExists(...
1
vote
1
answer
363
views
Atata - Unable to locate elements from table rows
Currently i am struggling to find an elements from a table row:
I am trying to locate it with:
detailPage.Users.Rows[x => x.Project == "Unassigned"].Project.Should.Equal("Unassigned");
I receive ...
5
votes
1
answer
963
views
Atata selenium web driver can't find controls by id on angular app
I have been struggling to set up a simple automated test on an angular (5) app using atata as the framework which simply wraps the selenium web driver to do its tests. For the life of me I can't get ...
1
vote
1
answer
80
views
Atata iframe SwitchTo method compile error : Using generic type requires 1 type argument
I have created a Frame control - Frame1 under Class1:
public Frame<_> Frame1 { get; private set; }
And defined Class2 for frame page:
public class Class2<TPage> : Page<TPage> ...
1
vote
0
answers
117
views
Atata: Disabled Control
How can I work with a disabled control (gets enabled later due to a certain action)?
We have a page (Page1) on the application which has a button (LoadPage2) disabled when a user accesses the page ...
-1
votes
1
answer
348
views
How to click hidden button for Atata framework?
There is a clickable button that is hidden in a part of the project I'm doing. It becomes visible when the mouse is over it. I want to click the hidden button. I tried most of the methods written in ...
1
vote
1
answer
468
views
C# / ATATA / Selenium: Using ControlList to store multiple tables
I am authoring a Page Object for my company that represents a HTML page which contains many tables (and is badly structured). I am only interested in certain tables on this page, and would like to ...
1
vote
1
answer
75
views
Get text from selected link or button
I am navigating to say a Google page and sending the keystrokes like the Tab key for six times and I need to get the text of the highlighted link or button or any control which in this case would be ...
2
votes
1
answer
521
views
Atata - How to send keys to a page
I am new to Atata and trying to send say a TAB key to a page and verify the contents which is higlighted (like say on a Google page) . I know we can do like below on say a page using Press but could ...
3
votes
1
answer
172
views
Atata - How to access hidden menu
I am new to Atata framework and am trying to access the below hidden navigation menu but was not succesfull
<li class="absoluteContainer">
<span id="aboutTheProject" class="...
2
votes
1
answer
237
views
Atata - Unable to locate element, using Table<> class
When I trying to refer to some element in table, using Table<> class, I get this error:
Message: OpenQA.Selenium.NoSuchElementException : Unable to locate element: By.XPath: .//td[1]/descendant-...
3
votes
1
answer
204
views
Atata - Timed out waiting for the jQuery AJAX call to complete
I was faced with an issue, when used [WaitForJQueryAjax] trigger. The thing is, too much time need to wait for. Is it possible to extend the time frame for this trigger ?
2
votes
1
answer
486
views
Atata - How to switch to new browser window by using Atata framework?
I am new to Atata framework. When I click a link in my webpage, it opens in a new window. How to switch to the new window using Atata framework?
Thanks
0
votes
1
answer
223
views
Atata – Processing table rows is slow
One more question regarding the Atata framework. I've found the loading from tables is slow. There's a table with approx. 1000 rows and whenever I am doing any operation on the retrieved row, it seems ...
1
vote
1
answer
801
views
Atata – Is there any functionality equivalent to Wait.Until?
In scenarios I'm working with, there's a need to wait until expected conditions like the value is present, the value has expected text or state, or until more complex rules are valid, e.g.:
Wait....
1
vote
1
answer
215
views
Atata – How to check hidden checkbox within table?
I am using Atata Framework and working on the following scenario—There's a table with checkbox within TD element. I want to be able to invoke Click() method on the checkbox, but couldn't get it work ...