Kaspresso icon indicating copy to clipboard operation
Kaspresso copied to clipboard

Util functions for WebView

Open priomino opened this issue 4 years ago • 3 comments

Need to add useful functions for working with pages. For switching to iframe For getting html of page or part

priomino avatar May 25 '20 05:05 priomino

I have code, need to add

priomino avatar May 25 '20 05:05 priomino

@priomino please attach a gist. I'll take a look

RuslanMingaliev avatar May 25 '20 14:05 RuslanMingaliev

@RuslanMingaliev here sample lines, need to think how to integrate in Kaspresso https://gist.github.com/priomino/17b5b27fb99a08337f596044813fb2e8

priomino avatar May 25 '20 14:05 priomino

Hi, @priomino ! Thank you for your samples. It looks like they have a very specific use case and we wouldn't want to include them to kaspresso. I'd suggest you to extract them to your local utils class or add them through kotlin extensions. You could create package private test methods inside your fragment or activity that interact with or expose a webview and use it in your tests

Nikitae57 avatar Nov 08 '22 10:11 Nikitae57