Search:

Type: Posts; User: freightgateone

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. Replies
    11
    Views
    722

    Fabulous, that's it!

    Fabulous, that's it!
  2. Excellent, thanks! While your answer probably...

    Excellent, thanks!
    While your answer probably works most of the time, for me it was necessary to add .rowAt(0, 60000).grid() before the execute(..). function because in my case the grid's entries...
  3. Replies
    11
    Views
    722

    This works but has an interesting quirk. If the...

    This works but has an interesting quirk. If the browser that is automatically launched during the test run is not manually maximized to completely fill the screen,
    ST is not able to select the item...
  4. Extract grid records into an object

    Say I have a grid and want to extract its records.



    let record = {};
    grid.rowAt(rowIndex)
    .cellAt(cellIndex)
    .focus()
    .get('innerText')
    .and(function (future) {
  5. Method to clear pre-filled data of a ST.future.Component

    Is there a way to clear an input field while using the ST.component("locator"); API?
    Using ST.component("locator").setValue(""); results in the following error:



    TypeError:...
  6. Replies
    11
    Views
    722

    Hmm no, sadly this does not work. I've send you a...

    Hmm no, sadly this does not work. I've send you a private message with an example so you can see it yourself
  7. Replies
    11
    Views
    722

    The 'General' node expands itself after typing so...

    The 'General' node expands itself after typing so that shouldn't be a problem.

    Also I should probably mention that I somehow need to work with the reportId, which is our internal way of...
  8. Replies
    11
    Views
    722

    Sadly your suggestion throws the following error:...

    Sadly your suggestion throws the following error: Timeout waiting for target to be visible for ST.future.Row. Fix the error and try recording again.

    Here are the attachments, hope it works this...
  9. Replies
    11
    Views
    722

    Selecting entries from a combotree

    I tried adapting what I've seen in this thread https://www.sencha.com/forum/showthread.php?472443-Clicking-an-item-from-the-combobox-drowpdown and apply it to my use case, but I keep getting errors....
  10. Is there a way to deliberately make a test fail?

    Say I am writing a bit of non-ST code inside a seperate function and may want to make my test fail or continue based on this functions result.

    How would I do this?

    I've seen some stuff in the...
  11. Replies
    1
    Views
    402

    Catching ST errors

    Is it possible to catch errors thrown by ST and handle them as I wish to?

    For example catching the error that occurs when a row can not be located due to an invalid rowindex?




    try {
    ...
  12. Replies
    2
    Views
    339

    Okay after trying out your suggestions this...

    Okay after trying out your suggestions this seemed to work out:



    it("check the grid for the updated record", function (done) {
    ST.wait(4000)
    .and(function () {
    ...
  13. Replies
    2
    Views
    339

    code flow problems with ST

    So I have this piece of code that tests whether a grid gets updated after having made a change to one of its records or not.

    The alert()-method clearly prints out the correct rowIndex and I've...
  14. Replies
    4
    Views
    1,088

    Hey, is this also possible when using page...

    Hey, is this also possible when using page objects? e.g.: stpo.custompage.myElement(10000); ?
  15. Hmm yes, that would work. Although, ...

    Hmm yes, that would work.

    Although,


    .execute(function(grid) {
    would now be


    .execute(function(row) {
  16. Ah, I found the problem! Turns out it wasn't...

    Ah, I found the problem!

    Turns out it wasn't the locators as I previously suspected.

    The grid's records get fetched from a DB and as I invoke the execute function right after navigating to the...
  17. Thanks, the KitchenSink version works...

    Thanks,

    the KitchenSink version works perfectly fine, but transferred to my site I am running into a problem.

    Executing the findby-Method directly in the Browser gives me the desired rowIndex:...
  18. Selecting grid entries with composite key

    Say I have a grid where a row is uniquely identified by a combination of two or more columns (in my case 3); a composite key.

    In this scenario there are 2^3 possible combinations


    ...
  19. Replies
    3
    Views
    380

    Thank you so much! A small addition to your...

    Thank you so much!

    A small addition to your solution:
    module.id gets the file location using '\' instead of '/' so the subtstring method has to be altered the following:



    describe('File...
  20. Replies
    3
    Views
    380

    relative paths do not work in ST?

    I have written a short test that fetches login credentials from a local file using the fs-module and logs in.



    describe("loginAndNavigate", function() {
    const fs = require('fs');

    //...
  21. Replies
    1
    Views
    241

    done causes test to fail

    I have written a short test that fetches login credentials from a local file, logs in and simply accesses a page element.



    describe("loginAndNavigate", function() {
    const fs =...
  22. Command-line arguments for test cases?

    Hello,
    I was wondering if it is possible to run test cases with command-line arguments respective to JAVA applications and their String[ ] args parameter...
  23. That's a great idea, I'll definitely try using...

    That's a great idea, I'll definitely try using direct DB queries.

    But it would still be more elegant to remove these entries after a test has run, right?

    Is there sth. comparable to a...
  24. Prevent duplicate entries in test runs

    In order to test some functionalities of a grid we have on our website I am currently creating new entries for each test run that I can then alter and act on in my test suites.

    After the tests...
  25. I'll answer that myself: the...

    I'll answer that myself:

    the .expect('innerText').toBe('string'); behaves the same as the text()-Method, even checks for the actual (not only displayed) value.
    Its toBe() can be preponed with...
Results 1 to 25 of 70
Page 1 of 3 1 2 3