Ask a Question

Getting error on using Clickcell method for a grid

ISR
Occasional Contributor

Getting error on using Clickcell method for a grid

Hi Everyone,

 

I am trying to use the clickcell method to select a record in the grid with the below parameters 

Name         Value     

Row             0

Column      unassigned 

Shift            skNoShift 

 

and I get an error on running the test as "grid column not found " . But when I use Click method it works fine. But ends up clicking some other record at times.So ideally i would want to use clickcell method. Could anyone suggest what I am I doing wrong here. Or what paramters has to be passed ?

 

Any suggestions would be much appreciated.

 

Thanks

 
5 REPLIES 5
TanyaYatskovska
Community Manager

Re: Getting error on using Clickcell method for a grid

Hi @ISR,

Could you please share the problematic line with us? We will need to see how you call the ClickCell method.

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
ISR
Occasional Contributor

Re: Getting error on using Clickcell method for a grid

Hi @TanyaYatskovska ,

 

Thank you for replying. I am using keyword tests and below is the line :

 

Aliases.CareCallSQL.BatchSearchForm.SearchGrid.ClickCell(0);

 

Thanks

AlexKaras
Community Hero

Re: Getting error on using Clickcell method for a grid

Hi,

 

> Column      unassigned 

What are your expectations when you command to click a cell but do not specify a column?

 

> Aliases.CareCallSQL.BatchSearchForm.SearchGrid.ClickCell(0);

What object is mapped via the SearchGrid alias? (DevExpress, Qt, ...)

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
TanyaYatskovska
Community Manager

Re: Getting error on using Clickcell method for a grid

Thanks for the help, Alex.

@ISR, does the issue still exist? Please let us know if you need any more assistance - we will be happy to help.

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
ISR
Occasional Contributor

Re: Getting error on using Clickcell method for a grid

Apologies for the late reply. 

 

Turns out the grid was changed so I used DblClick method and it is working fine.

 

Thank you for your help @TanyaYatskovska and @AlexKaras 

cancel
Showing results for 
Search instead for 
Did you mean: