简体   繁体   English

无法将值键入不可见网格

[英]Unable to type value to invisible grid

I'm having trouble focusing on an element in the search grid.我无法专注于搜索网格中的元素。 I've targeted it now, but I can't write anything in it.我现在已经瞄准了它,但我不能在里面写任何东西。 It doesn't make a mistake, it just doesn't write the characters of "St".它没有出错,只是没有写出“St”的字符。 Anyone have an idea what I'm doing wrong?任何人都知道我做错了什么? Could the problem be that the element is not visible?问题可能是该元素不可见吗?

Code in Cypress:赛普拉斯中的代码:

cy.get('div[id="grid"]').find('.dx-datagrid-filter-row')
  .find(".dx-editor-with-menu").eq(2)cy.focused().click({ force: true }).type('St');

Evaluation:评估:

Cypress 中的评估

You can try something like:您可以尝试以下操作:

cy.get('div[id="grid"]')
  .find('.dx-editor-with-menu')
  .eq(2)
  .focus()
  .click({force: true})
  .type('St', {force: true})

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM