Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    dhairyahetal
    @dhairyahetal
    Ok, thanks @YevgeniyShunevych
    Yevgeniy Shunevych
    @YevgeniyShunevych
    with [FindByClass("utilitybar")]
    dhairyahetal
    @dhairyahetal
    This works, I'm able to access this component
    There is a button that I need to click on which is intercepted by this utility bar
    2021-08-11 10:58:47.8069 TRACE - - < Click element { Id=0dce3f3e-8cee-4323-97eb-f72bf49d462f } (1.038s) >> OpenQA.Selenium.ElementClickInterceptedException: element click intercepted: Element <button c-opportunitycontainer_opportunitycontainer="" class="slds-button slds-button_brand slds-path__mark-complete slds-truncate">...</button> is not clickable at point (1064, 694). Other element would receive the click: <ul class="utilitybar slds-utility-bar" data-aura-rendered-by="394:0">...</ul>
    (Session info: chrome=92.0.4515.131)
    So I tried to click this bar and then the button, however on clicking the button, click-intercepted is thrown, is there a utility in Atata we could use to cover this case?
    Yevgeniy Shunevych
    @YevgeniyShunevych
    Do you have a screenshot of the failure to understand how that bar intercepts the click on other component?
    dhairyahetal
    @dhairyahetal
    screenshot of the dom?
    Yevgeniy Shunevych
    @YevgeniyShunevych
    of UI
    dhairyahetal
    @dhairyahetal
    image.png
    When we try to click the 'submit' button, the highlighted in blue section seems to be intercepting the click
    Yevgeniy Shunevych
    @YevgeniyShunevych
    Am I correct that the utilitybar is a docked footer on the page and it is always visible and overlaps the other elements on the page?
    dhairyahetal
    @dhairyahetal
    This is always visible and it doesnt let me click any other buttons close to this section
    Yep it overlaps with other elements
    Yevgeniy Shunevych
    @YevgeniyShunevych
    Ok. Is it a common footer across all website? Or it just occurs on some certain page(s)?
    dhairyahetal
    @dhairyahetal
    Thats correct, it is across the website
    Yevgeniy Shunevych
    @YevgeniyShunevych
    This is not cool. But OK, we can try to handle it. Can this bar be disabled on the site by some setting or configuration? It will be very useful.
    Try to add these attrbutes to the submit button and see what happens:
    [ScrollTo]
    [ScrollUsingScrollIntoView]
    dhairyahetal
    @dhairyahetal
    You mean while executing the automated tests, we can disable this section
    This is possible
    dhairyahetal
    @dhairyahetal
    This worked, thank you so much again!!
    Steven Pham
    @tienminh271
    Hi @YevgeniyShunevych , with the topic https://stackoverflow.com/questions/64082090/nunit-selenium-webdriver-is-not-closed-after-running-all-tests, it provides solution to reuse the current running browser instance. How does this work with parallel execution if I set LevelOfParallelism(3) for example? Shall we get 3 browser instances run parallelly and will be re-used for any next test is called?
    3 replies
    dhairyahetal
    @dhairyahetal
    image.png
    Hi @YevgeniyShunevych , for interacting with combobox field using Atata we tried TextInput<> and Select<> but I'm getting InvalidStateElement exception
    Could you pls share best possible contruct we could use with Atata for such element
    dhairyahetal
    @dhairyahetal
    Here is the snapshot of the logs
    ot(@type)]" in ChromeDriver
    2021-08-17 12:22:54.9313 TRACE - - < Find visible element by XPath "(//lightning-combobox//input[@class='slds-input slds-combobox__input'])/descendant-or-self::input[@type='text' or not(@type)]" in ChromeDriver (0.037s) >> Element { Id=da7b7492-34db-4a8c-b3fa-166a5a3cf0ce }
    2021-08-17 12:22:54.9318 TRACE - - > Clear element { Id=da7b7492-34db-4a8c-b3fa-166a5a3cf0ce }
    2021-08-17 12:22:54.9568 TRACE - - < Clear element { Id=da7b7492-34db-4a8c-b3fa-166a5a3cf0ce } (0.024s) >> OpenQA.Selenium.InvalidElementStateException: invalid element state
    (Session info: chrome=92.0.4515.131)
    2021-08-17 12:22:54.9573 TRACE - < Execute behavior ValueSetUsingClearAndSendKeysAttribute against "Loan Purpose" text input (0.064s) >> OpenQA.Selenium.InvalidElementStateException: invalid element state
    (Session info: chrome=92.0.4515.131)
    We are all good with this issue. It worked with using the Press(Keys.Down) approach
    @YevgeniyShunevych
    Yevgeniy Shunevych
    @YevgeniyShunevych
    Hi @dhairyahetal. I guess here is the combobox component that you need to handle. I would create a custom Atata control class for it, kind of similar to KendoDropDownList<T, TOwner>.
    dhairyahetal
    @dhairyahetal
    Awesome, thanks for sharing
    Yevgeniy Shunevych
    @YevgeniyShunevych
    No problem, you can also take a look at other controls in that Atata.KendoUI repository.
    dhairyahetal
    @dhairyahetal
    Yep will do
    jtbrio
    @jtbrio
    Hi @YevgeniyShunevych
    Is there a clear tutorial which describe how to integrate atata tests in Azure DevOps build pipeline ?
    2 replies
    I'm facing time out issues
    Steven Pham
    @tienminh271
    Hi @YevgeniyShunevych, in my web page using Bootstrap fw, I'm facing with a component using Select2 lib (https://select2.org/) do we have any defined library to handle this kind of component or I will need to create wrapper for it. Thank you.
    13 replies
    image.png
    TamasSzalisznyi
    @TamasSzalisznyi

    Hi! We have a very weird but major issue: in the local environment, everything works fine but in AIT or PRAIT the '@' sign is not handled well, many tests can't even log in, and thus we can't let our UI tests go further.
    Already searched on SO, SE but not many results, we use a very basic and easy way to fill the login input fields:

    public static class LoginCommon
        {
            public static T Login<T>(TestUser testUser) where T : PageObject<T>
            {
                return Go.To<LoginPage<T>>()
                    .Wait(Until.Visible)
                    .UserName.WaitUntilVisible()
                    .Password.WaitUntilVisible()
                    .UserName.Set(testUser.UserName)
                    .Password.Set(testUser.Password)
                    .LoginBtn.ClickAndGo();
            }
    
        }

    https://files.gitter.im/583acf13d73408ce4f38f061/WMYw/image-10-.png

    21 replies
    Steven Pham
    @tienminh271
    This message was deleted
    andgorbachov
    @andgorbachov

    Hi @YevgeniyShunevych!
    Could you please take a look at the following issue?
    I try to use FileInput to upload a file, But I face with NoSuchElementException when try to Set value.

    FileInputControl.Should.Exist returns true.

    Yevgeniy Shunevych
    @YevgeniyShunevych
    Hey @andgorbachov!
    andgorbachov
    @andgorbachov
    image.png
    andgorbachov
    @andgorbachov
    @YevgeniyShunevych sorry for disturbing - looks like it started working...
    Yevgeniy Shunevych
    @YevgeniyShunevych
    No problem. Was a bit busy. As a hint, I would change your [FindByXPath(...)] to [FindByClass("attachmentFileUpload")].
    Steven Pham
    @tienminh271
    Hi @YevgeniyShunevych, in the Search page, I'd would like to split the Result Grid into a separated class, which calls page component. Do you have an example code present a complex Web page is captured & separated into Page Component, each Page Component has its child controls & methods?
    14 replies
    Yevgeniy Shunevych
    @YevgeniyShunevych
    Atata 1.12.0 is released with significant improvement of behavior attribute system and other useful features
    dhairyahetal
    @dhairyahetal
    Hi @YevgeniyShunevych , for asserting if a value is present in the dropdown component, does Atata provide a wrapper for using SelectElement class in Selenium?
    3 replies
    Yevgeniy Shunevych
    @YevgeniyShunevych
    Atata.Configuration.Json 1.7.0 is released with support of latest Atata configuration properties
    jsanderson-dexi
    @jsanderson-dexi
    Hello Yevgeniy, I have the logging set to INFO for the tests that I'm writing. I want to have the INFO level of logging for all actions except when a Password input gets its value set. Is there a setting that could help me with this?
    2 replies
    Yevgeniy Shunevych
    @YevgeniyShunevych
    Steven Pham
    @tienminh271

    Hi @YevgeniyShunevych , are there options to override the CultureInfo to "en-AU"? I'd to have default DateTime initialization follows en-AU culture e.g dd/MM/yyyy.
    I use Atata with Specflow, in Feature file, the date is written in dd/MM/yyyy, but when storing it to Specflow Container (Table.CreateInstance<Object>()) the DateTime is converted to en-US which is MM/dd/yyyy.

    I tried
    AtataContext.GlobalConfiguration.UseCulture("en-AU") but it doesn't work.

    3 replies
    Steven Pham
    @tienminh271
    Hi @YevgeniyShunevych, what is the best performance code to get all cells value of a Table Row as a List<string>? I face with low performance issue when trying to get the workingRow = TableA.Rows[x => bool condition], then use workingRow.Cell1.value, workingRow.Cell2.Value.... The row has 7 cells and iit takes nearly 10 secs to complete getting all cells value.
    3 replies