Git Product home page Git Product logo

last-hit-aab / last-hit Goto Github PK

View Code? Open in Web Editor NEW
32.0 32.0 8.0 3.05 MB

puppeteer UI automation test tools, record once, run everywhere, bringing you a comprehensive and enjoyable automation experience

Home Page: https://www.last-hit.com

License: MIT License

HTML 0.47% JavaScript 0.19% TypeScript 99.33%
automation continuous-integration e2e-testing parallel puppeteer recorder tool ui-testing

last-hit's People

Contributors

last-hit-a avatar last-hit-aab avatar last-hit-b avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

last-hit's Issues

Add "Run one step" button on replay dialog

Sometimes there is no breakpoint on next of breakpointed step, seems have to set breakpoint on each step.

Or a Run one step button is more user friendly on debugging the flow.

textarea missed in setValueToElement on replay

Hi there,

seems textarea is missed, in replayer.ts, as below,

	private async setValueToElement(element: ElementHandle, value: string) {
		const tagName = await this.getElementTagName(element);

		// console.log("tagName", tagName)
		if (tagName === 'INPUT') {
			const type = await this.getElementType(element);
			if (
				!type ||
				['text', 'password', 'url', 'search', 'email', 'hidden', 'number', 'tel'].includes(
					type.toLowerCase()
				)
			) {

should be

if (tagName === 'INPUT' || tagName === 'TEXTAREA') {

add regexp check for random id

Hi,

in our ui components, id is random generated. it will cause replay failure.
should you add a special regexp check when building xpath?

here is the sample.

currently

const ignoredIdRegexps = [/^md-.+-.{6,16}$/, /^select2-.+$/];

wanted

const ignoredIdRegexps = [/^md-.+-.{6,16}$/, /^select2-.+$/, /^rainbow-ui\d{15}$/];

\d{15} is a timestamp.

rename story name error

Describe the bug
rename story name error

To Reproduce
Steps to reproduce the behavior:

  1. Go to workspace
  2. Click on right button and click rename
  3. key in new story name
  4. clcik ok

Expected behavior
rename success

Screenshots
image

Desktop (please complete the following information):

  • OS: mac
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Multiple url regexp replacements

Hi,

We found there is an url replacement feature in CI, that's great.
But in our scenarios, in one flow, there are multiple url host need to be replaced, seems not supported yet.

Now we have to replace these urls manually, will you add this feature in next release?

Thanks.

onbeforeunload is not supported yet

can catch the following:

  1. event.defaultPrevented after Event.preventDefault() ,
  2. event.returnValue after been set,
  3. return value of event handler

handler can be added by addEventListener or onbeforeunload.

wechat support

  • share: open a page directly
  • choose image: upload
  • geo: alert and input

Electron Support?

Hi!
I really like Last Hit, it seems very smooth compared to most recorders.
I noticed that Last Hit is developed in Electron, so I was wondering is Last Hit can test an Electron app.
Typically test frameworks allow you to start exes and then sense browser windows open on the computer, but i didn't see an option for capturing a browser window, only for starting a new one.

I imagine I could start an exe from Typescript with the right libraries, but how can i get Last-Hit to attach to a new browser window?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.