18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
How to update cell value for extjs grid using Sahi?
Hi,
I have one web application built up by extjs. I want to use Sahi for web automation test. Now I am having a problem that I cannot update the cell value for extjs grid.
Following is my script,
1. double click the cell is good.
_doubleClick(_cell(0,_near(_div("OPT")),_under(_div("Category Description").parentNode)));
_wait(1000);
2. _setValue for a extjs cell is not OK. Actually I am not sure if I can update it as textbox
_setValue(_textbox(0, _near(_div("OPT"))), "TEST");
3. I also tried to simulate key pressing from keyboard, but it didnot work.
_doubleClick(_cell(0,_near(_div("OPT")),_under(_div("Category Description").parentNode)));
_wait(1000);
_focus(_cell(0,_near(_div("OPT")),_under(_div("Category Description").parentNode)));
_keyDown(_cell(0,_near(_div("OPT")),_under(_div("Category Description").parentNode)),"Q");
_keyUp(_cell(0,_near(_div("OPT")),_under(_div("Category Description").parentNode)),"Q");
Any ideas?
I previously used selenium.type(xpath, text) to update cell value.
Thanks a lot
I have one web application built up by extjs. I want to use Sahi for web automation test. Now I am having a problem that I cannot update the cell value for extjs grid.
Following is my script,
1. double click the cell is good.
_doubleClick(_cell(0,_near(_div("OPT")),_under(_div("Category Description").parentNode)));
_wait(1000);
2. _setValue for a extjs cell is not OK. Actually I am not sure if I can update it as textbox
_setValue(_textbox(0, _near(_div("OPT"))), "TEST");
3. I also tried to simulate key pressing from keyboard, but it didnot work.
_doubleClick(_cell(0,_near(_div("OPT")),_under(_div("Category Description").parentNode)));
_wait(1000);
_focus(_cell(0,_near(_div("OPT")),_under(_div("Category Description").parentNode)));
_keyDown(_cell(0,_near(_div("OPT")),_under(_div("Category Description").parentNode)),"Q");
_keyUp(_cell(0,_near(_div("OPT")),_under(_div("Category Description").parentNode)),"Q");
Any ideas?
I previously used selenium.type(xpath, text) to update cell value.
Thanks a lot
Comments
Please go through the following link,
http://sahi.co.in/forums/viewtopic.php?id=1878
This might help you.
Regards,
Theeran.
Do I need to run ext js function?