முக்கிய உள்ளடக்கத்திற்குச் செல்லவும்
🇺🇦  We stand with the people of Ukraine. We encourage compassion, and hope for peace.   🇺🇦
Please support humanitarian efforts for the Ukraine crisis through the International Committee of the Red Cross! #StandWithUkraine

overwriteCommand

உலாவியின் overwriteCommand முறை உலாவி மற்றும் உறுப்புகளின் இயல்பான கட்டளைகளான pause மற்றும் click போன்றவற்றை மேலெழுத உதவுகிறது.

தகவல்

இதுபற்றிய மேலும் தகவலை தனிப்பயன் கட்டளை பிரிவில் காணலாம்.

பயன்பாடு
browser.overwriteCommand(name, callback, elementScope)
அளவுருக்கள்
பெயர்வகைவிவரங்கள்
namestringஅசல் கட்டளையின் பெயர்
callbackFunctionஅசல் செயல்பாட்டை அனுப்புகிறது
elementScope
விருப்பத்தேர்வு
Booleanஉலாவி பொருளுக்குப் பதிலாக உறுப்பு பொருளை நீட்டிக்கவும்
எடுத்துக்காட்டு
execute.js
// print milliseconds before pause and return its value.
await browser.overwriteCommand('pause', function (origPauseFunction, ms) {
console.log(`Sleeping for ${ms}`)
origPauseFunction(ms)
return ms
})

// usage
it('should use my overwrite command', async () => {
await browser.url('https://webdriver.io')
await browser.pause(1000) // outputs "Sleeping for 1000"
})

Welcome! How can I help?

WebdriverIO AI Copilot
Morty Proxy This is a proxified and sanitized view of the page, visit original site.