CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

click() other elements

Open kidandcat opened this issue 10 years ago • 18 comments

It would be great if click() method would work with other elements, for me at least it is common to have divs with click listeners.

kidandcat avatar May 30 '16 20:05 kidandcat

+1

aldarund avatar Aug 02 '16 23:08 aldarund

+1

Especially for many calendar frameworks where the table elements are clickable etc.

Kyderman avatar Aug 25 '16 11:08 Kyderman

Thanks, I will improve that in next release

DavertMik avatar Aug 25 '16 22:08 DavertMik

+1

chozzz avatar Oct 26 '16 03:10 chozzz

+1

divad4686 avatar Nov 28 '16 17:11 divad4686

+1

andreluizbnu avatar Apr 17 '17 21:04 andreluizbnu

+1

aryzle avatar Jun 07 '17 15:06 aryzle

+1

panique avatar Aug 03 '17 15:08 panique

+1

It is common for any type of element to be clickable.

NikolajLeischner avatar Sep 12 '17 11:09 NikolajLeischner

+1

ghost avatar Nov 28 '17 11:11 ghost

Is there are workaround for this?

MarkMcCorrie avatar Jan 22 '18 19:01 MarkMcCorrie

@MarkMcCorrie I think you can click any element using executed javascript inside the website, but it's a dirty workaround. It looks like this issue will go for long.

kidandcat avatar Jan 22 '18 20:01 kidandcat

@kidandcat I used the click method using an XPath to get it working in the end

MarkMcCorrie avatar Jan 23 '18 18:01 MarkMcCorrie

@DavertMik Is this resolved now in v1.1.0?

reubenmiller avatar Feb 26 '18 20:02 reubenmiller

Still an issue for me:

Clickable //div[@id='MainContent_FormView1_dvValidateFW']/table/tbody/tr/td[2]/div/a/span 
was not found by text|CSS|XPath

Even with XPath, I cannot click a span

ajusa avatar Jul 10 '18 19:07 ajusa

+1

cderya1994 avatar Sep 20 '18 14:09 cderya1994

+1

bmansell avatar Sep 26 '18 16:09 bmansell

probably we close this.

kobenguyent avatar Nov 18 '19 13:11 kobenguyent