KINDLY HELP....! Expected to find element: #VTK-j_idt1363, but never found it. #20640
razeemmansoor
started this conversation in
General
Replies: 2 comments 3 replies
-
I don't think that is the proper use of a
|
Beta Was this translation helpful? Give feedback.
0 replies
-
But I have used that assertions also,still unable to click the element..I
tried many possibilities already available in the internet.Can you please
suggest me some more possibilities
…On Wed, 16 Mar 2022, 8:04 pm jjhelguero, ***@***.***> wrote:
I don't think that is the proper use of a cy.wait() command. It seems you
are waiting for an element to be rendered/enabled. I'd recommend the
following and add assertions such as .should('be.visible') or
.should('be.enabled') where you may need.
it('Test ship', function() {
cy.viewport(1120,800)
cy.visit('url')
cy.get('#LoginForm-nfr_login_authname').type('username') // maybe use better selectors?
cy.get('#LoginForm-nfr_login_authid').type('paSSw0rd')
cy.on('uncaught:exception', (err, runnable) => { // you are allowing all app errors to occur, might be harmful to app quality
return false
})
cy.xpath('//span[normalize-space()="Work Space"]').should('be.visible').click() // try to use better selectors than xpath
cy.get('#VTK-j_idt1262').should('be.visible').click()
})
—
Reply to this email directly, view it on GitHub
<#20640 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AYH46MUBBTDYPJHFBSCTDRTVAHWPNANCNFSM5Q3FFWQA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi..,I am facing an issue on clicking an element.I need an element to be clicked while the network is slow by not using wait() and pause().The page loads after or more than 35sec(350000).Could someone help me to solve the issue,please?
Here is my coding.
it('Test ship',function(){
Please help me to sort out this problem.
Beta Was this translation helpful? Give feedback.
All reactions