Questions tagged [sencha-test-2.1]

10 questions
1
vote
2 answers

How to select an item from a combobox in Senchat Test

Is there a way to select an item from a combobox without having the actual value of the item ? Lets say we have a combo with Oranges, Apples and Lemons and the actual value of these items are keys that we don't know is there a way to do select by…
code4jhon
  • 5,725
  • 9
  • 40
  • 60
1
vote
1 answer

Error using hasCls within an expect in Sencha Test

Sencha Test 2.1 Is there a bug regarding the use of hasCls within an expect? Lets say I have something like: this.component().gotoButton('[text=See]').gotoComponent('menucheckitem[text=some text]') .and(function (el) { …
code4jhon
  • 5,725
  • 9
  • 40
  • 60
1
vote
1 answer

How to check a checkmenuitem in Sencha Test

Using Sencha Test 2.1 So I'm trying to check a checkboxmenuitem which is an item in a button menu. I can reference it but the method check is not availble for…
code4jhon
  • 5,725
  • 9
  • 40
  • 60
1
vote
1 answer

Reference a combobox within a grid row using Sencha Test

Reference a combobox within a grid row using Sencha Test. Given something like: { text: "Select one", width: 110, editor: { field: { xtype: 'combobox', …
code4jhon
  • 5,725
  • 9
  • 40
  • 60
0
votes
1 answer

Extract grid's 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) { record.columnName = future.data.innerText; }); How can I…
0
votes
1 answer

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: ST.component(...).setValue is not a function... PS: Is the old forum now…
0
votes
1 answer

Passing additional parameters to execute function in Sencha Test

Is there a way to pass additional parameters to an execute function in Sencha Test? In a web driver scenario a closure is not an option. http://docs.sencha.com/sencha_test/2.1.1/api/ST.html#method-execute Take for example: selectColumn: function ()…
code4jhon
  • 5,725
  • 9
  • 40
  • 60
0
votes
1 answer

Reference a combobox within a grid with a cell editing plugin in Sencha Test (without global search)

Given there is a Grid using a cell editing plugin is there a way to reference a combobox editor without doing it in a global way ? I have this working: this.grid().rowAt(0).cellAt(0).click(); // click to show the combo …
code4jhon
  • 5,725
  • 9
  • 40
  • 60
0
votes
1 answer

Double click a row in Sencha Test

How to double click a grid row using Sencha Test Framework ? So far I'm able to reference the row and execute a click but I don't see a way to perform a double click (doing a click 2 times doesn't work either as a double…
code4jhon
  • 5,725
  • 9
  • 40
  • 60
0
votes
2 answers

Sencha Test validate content of MessageBox

Does someone know how can you validate the text within a Messagebox using Sencha Test 2.1 ? I'm successful in retrieving the actual messagebox like this: ST.panel('messagebox').visible(); So I want to do something like:…
code4jhon
  • 5,725
  • 9
  • 40
  • 60