Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Hiren Barad
    @baradhiren
    Screenshot (18).png
    Let me know if you need anything else.
    Yevgeniy Shunevych
    @YevgeniyShunevych
    Atata tries to find column header with the text exact equal to the control term. But I can assume that filter icons in each column header can be represented as extra text character. I would try to change the term match from Equal to Contains. Just like here:
    [TermFindSettings(Match = TermMatch.Contains, TargetAttributeType = typeof(FindByColumnHeaderAttribute), TargetAnyType = true)]
    public class SomeRow : KendoGridRow<_>
    {
    //...
    }
    Hiren Barad
    @baradhiren
    Screenshot (20).png
    Screenshot (19).png
    image.png
    Hey @YevgeniyShunevych , I did try that out. But still no luck.
    Yevgeniy Shunevych
    @YevgeniyShunevych
    Hiren Barad
    @baradhiren
    Hey @YevgeniyShunevych , I did some more digging by modifying my custom grids. I think the issue is with the k-grid-toolbar which contains two buttons to export data as excel and pdf. Any suggestion on what will be an ideal solution to identify those two buttons and separate them from the columns.
    Because by looking at the exception it seems like atata is trying to look for the CdtCode column data but only finds two text values which are EXPORT TO EXCEL and EXPORT TO PDF
    This is the source for the toolbar
    Screenshot (21).png
    Also, if you can just guide me in the right direction. I have gone through the docs and source code but not able to connect some dots. Thank you again for all the support.
    Yevgeniy Shunevych
    @YevgeniyShunevych
    Hey @baradhiren. Strange a bit. It is hard to say what's wrong, until I cannot see complete HTML of the page. I see 2 options:
    1. You can share (can chat me directly) whole HTML source of the page with the grid.
    2. If columns in this grid are always located in the same order you can use FindByColumnIndexAttribute to find the column directly by it's index and not by column header text. You will need to apply this attribute with corresponding index to each property of grid row class like below:
    [FindByColumnIndex(0)]
    public Text<TOwner> CdtCode { get; private set; }
    Hiren Barad
    @baradhiren
    Hello, Me again. I have a situation in kendogrid where I am editing a column value after clicking on edit button. Is it any way possible to manage this in Atata. For reference please find attached screenshot.
    Screenshot (22).png
    Hiren Barad
    @baradhiren
    Nevermind, got it by using a combo of findbyclass and findbyid. :)
    Yevgeniy Shunevych
    @YevgeniyShunevych
    Atata.KendoUI 1.3.0 is released with new KendoAutoComplete control and several enhancements
    Yevgeniy Shunevych
    @YevgeniyShunevych
    uchagani
    @uchagani
    Is there a way to generate reports aside from the log output?
    Oleksandr Pidhainyi
    @alexdefine
    @uchagani if you are looking for html report with test results take a look at Extent Report, or Report Portal. Both tools are pretty easy to integrate to Atata.
    Hiren Barad
    @baradhiren

    Hello, Is there any way to get the number of rows which has the same value in kendo grid?
    Exa.:
    someKendoGrid.Rows[x => x.Name == 'Hiren']

    And get count of rows which have Hiren as value?

    Yevgeniy Shunevych
    @YevgeniyShunevych

    Hey @baradhiren.

    Here are samples:

    // Assume that page.Cars is KendoUIGrid.
    
    string expectedCarMake = "Nissan";
    
    // How to get count into a variable:
    int count = page.Cars.Rows.Count(car => car.CarMake == expectedCarMake);
    
    // How to perform count assertion:
    page.Cars.Rows.Should.Satisfy(x => x.Count(car => car.CarMake == expectedCarMake) == 2, $"contain 2 {expectedCarMake}");
    New Atata example: Custom FindByAttributeAttribute
    Hiren Barad
    @baradhiren
    Awesome. Thanks @YevgeniyShunevych
    Yevgeniy Shunevych
    @YevgeniyShunevych
    No problem.
    Hiren Barad
    @baradhiren
    Hey @YevgeniyShunevych, One more question. If I have a hidden column in my kendogrid is there any way I can get text value from that?
    Yevgeniy Shunevych
    @YevgeniyShunevych
    Hey @baradhiren. You can find this column for example by index like below. And there is a need to set ContentSource (because by default text of hidden elements is "").
    [FindByColumnIndex(2, Visibility = Visibility.Any)]
    [ContentSource(ContentSource.TextContent)]
    public Text<_> HiddenColumnText { get; private set; }
    Hiren Barad
    @baradhiren
    Thanks @YevgeniyShunevych I will try that out.
    Yevgeniy Shunevych
    @YevgeniyShunevych
    You're welcome.
    Yevgeniy Shunevych
    @YevgeniyShunevych
    Atata 1.6.0 is released with several new features
    Yevgeniy Shunevych
    @YevgeniyShunevych
    Burrypony
    @Burrypony
    Hi, is there any way to set priority to running tests?
    @YevgeniyShunevych
    Yevgeniy Shunevych
    @YevgeniyShunevych
    @Burrypony , it depends not on Atata, but on testing framework that you use, like NUnit, xUnit.
    NUnit, for example, has OrderAttribute.
    Burrypony
    @Burrypony
    Thanks :)
    Yevgeniy Shunevych
    @YevgeniyShunevych
    No problem.
    Yevgeniy Shunevych
    @YevgeniyShunevych
    Atata 1.7.0 is released with a set of enhancements and fixes
    MKoole
    @MKoole

    Hello,
    We are using Atata in combination with Kendo UI. Very nice combination.
    Currently when we are describing a page with a grid like this:

            public class MyTableRow : TableRow<T>
            {
                [FindByXPath("td[0]")]
                public Text<T> Col1 { get; private set; }
                [FindByXPath("td[1]")]
                public Text<T> Col2 { get; private set; }
           }

    Is it possible to avoid binding the columns to a specific index number? Like a custom solution where we retrieve a grid row and just say, "give me the value for cell 'Col1' ".

    2 replies
    Yevgeniy Shunevych
    @YevgeniyShunevych
    New Atata tutorial: Reporting to Extent Reports
    Yevgeniy Shunevych
    @YevgeniyShunevych
    Yulia Zveryanskaya
    @jzveryanskaya
    Hi!
    Is there a way to have two browser instances in one test?
    Yevgeniy Shunevych
    @YevgeniyShunevych
    Hi @jzveryanskaya. Yes, it is possible to do. You just need to add some extra code to base fixture class. Please check out the Multiple Browsers in Test sample project that I've recenly created.
    Ivan
    @ivang7

    Hi guys, how i can set attributes for find first element from page which have multiple elements?
    example page:
    <a href="#1">first link</a><a href="#2">second link</a>

    i want create properties Link <_> link;
    for first link, selector by tag (first tag from page)

    i solved it - [FindFirst()]
    Yevgeniy Shunevych
    @YevgeniyShunevych
    Hey @ivang7. Right, [FindFirst] to find the first one and for example [FindByIndex(1)] to find the second one.
    Yevgeniy Shunevych
    @YevgeniyShunevych
    Atata 1.8.0 is released with a new script executor and significant enhancement of the attributes system
    Yevgeniy Shunevych
    @YevgeniyShunevych
    Atata.Configuration.Json 1.4.0 is released with support of latest Atata configuration properties
    Yevgeniy Shunevych
    @YevgeniyShunevych
    Atata Templates 1.8.0 Visual Studio extension is released with the new "Atata NUnit Advanced Test Project (.NET Core)" project template