Hi @Raghavpal. Your voice while teaching is so pleasant. I am sure you have a lot of patience when it comes to teaching. This quality makes it look simple and hooks the learner to learn further.
Thanks Raghav for all your helpful tutorials, you make always a great effort to keep us updated with new technologies used in the testing automation market. good job and keep it up 👍👍👍
Hi Sir, I follow your learning but due to some issues im unable to proceed with practice, could you please lemme know how to uninstall cypress from visual studio code???? So that i can reinstall it, i have tried uninstalling VS code but cypress still exists if i redownload it, kindly help me sir, i am stuck!
**I am Trying to draw rectangular shape on canvas in Cypress Automation, but it is not allowing to do so. All we need to click and hold from one diagonal point and drag& drop let's say from (1,1) to another coordinate point(2,2). Then our task would be done. Note: But the problem here is the source element point (1,1) is not any element it's just a point on canvas and if we hold this value in ILocation interface then we cannot use any drag and drop plugin because in drag arguments the source & target parameter should be element string. Have used the below trigger code also but this also did not work for me. export function drawRectangle(start: ILocation, size: number): any { //'start' is the mid point of coordinate // size is 100 const source = {x: start.x, y: start.y} const dest= {x: start.x + size, y: start.y + size } cy.get('.div.canvas-container').click(source.x, source.y).as('sourcePoint'); cy.get('@sourcePoint'). trigger ("mousedown", {force:true}) cy.get('.div.canvas-container').trigger ("mousemove", {source, dest}, {force:true}) cy.get('.div.canvas-container').click(dest.x, dest.y).as('destPoint'); cy.get('@destPoint'). trigger ("mouseup", {force:true}) }
Sir, you're the father of automation! You're doing great efforts to grow automation community. We all are so lucky. A big thank you from all of us!
I am so humbled Rajesh, Can just say, I am trying to learn & improve daily.
Hi @Raghavpal. Your voice while teaching is so pleasant. I am sure you have a lot of patience when it comes to teaching. This quality makes it look simple and hooks the learner to learn further.
Thank you so much
Thanks Raghav for all your helpful tutorials, you make always a great effort to keep us updated with new technologies used in the testing automation market. good job and keep it up 👍👍👍
So nice of you Ahmed, Thanks a lot for the message
Thank you for your work and very good content =)
Glad you enjoy it Ivan
Sir your way of teaching is outstanding
Thanks a lot Ash
Thank you for this video. Easy to understand
Most welcome Thảo
Thank you for your video
Most welcome Sean
nice explanation.. waiting for the next Cypress videos.. 👍👍
Coming soon Layan
Thanks for the video good job
Thanks for watching Musibul
Please suggest Data generation tools for automation testing using cypress for data driven test
I will plan on this Deen
nice video bro i subbed
Thanks for the sub
Thank you sir 😊
Most welcome Priyanka
Hi Sir, I follow your learning but due to some issues im unable to proceed with practice, could you please lemme know how to uninstall cypress from visual studio code???? So that i can reinstall it, i have tried uninstalling VS code but cypress still exists if i redownload it, kindly help me sir, i am stuck!
Hi Banu, you can run the command
npm uninstall cypress
and then reinstall
thanks
Most welcome Sefa
Sir I am facing proxy error while installing cypress please help mee
Hi Sirkanth, this can help stackoverflow.com/questions/60379393/cypress-installation-fails-with-proxy-setup
**I am Trying to draw rectangular shape on canvas in Cypress Automation, but it is not allowing to do so. All we need to click and hold from one diagonal point and drag& drop let's say from (1,1) to another coordinate point(2,2). Then our task would be done.
Note: But the problem here is the source element point (1,1) is not any element it's just a point on canvas and if we hold this value in ILocation interface then we cannot use any drag and drop plugin because in drag arguments the source & target parameter should be element string.
Have used the below trigger code also but this also did not work for me.
export function drawRectangle(start: ILocation, size: number): any {
//'start' is the mid point of coordinate
// size is 100
const source = {x: start.x, y: start.y}
const dest= {x: start.x + size, y: start.y + size }
cy.get('.div.canvas-container').click(source.x, source.y).as('sourcePoint');
cy.get('@sourcePoint'). trigger ("mousedown", {force:true})
cy.get('.div.canvas-container').trigger ("mousemove", {source, dest}, {force:true})
cy.get('.div.canvas-container').click(dest.x, dest.y).as('destPoint');
cy.get('@destPoint'). trigger ("mouseup", {force:true})
}
Hi Rajat, not very sure, will need to see some examples
thnk you
You're welcome!