You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today I used patch-package to patch nightwatch@2.3.7 for the project I'm working on.
my test:
var agentName = process.env.AGENT_NAME;
var agentSession = Number(process.env.SESSION_IDX);
var agentSessionName = process.env.SESSION_NAME;
var agentNumber = process.env.AGENT_NUM;
client.include("SetTestExpectation_alert")
client.rtcEvent("Start", 'global')
.rtcProgress("Start")
.pause(agentNumber * 500);
var sec = 1000;
var roomUrl = "some_roomUrl"
Uh oh!
There was an error while loading. Please reload this page.
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
nightwatch@2.3.7
for the project I'm working on.my test:
var agentName = process.env.AGENT_NAME;
var agentSession = Number(process.env.SESSION_IDX);
var agentSessionName = process.env.SESSION_NAME;
var agentNumber = process.env.AGENT_NUM;
client.include("SetTestExpectation_alert")
client.rtcEvent("Start", 'global')
.rtcProgress("Start")
.pause(agentNumber * 500);
var sec = 1000;
var roomUrl = "some_roomUrl"
client
.rtcInfo("process.env.RTC_RUN_COUNT " + process.env.RTC_RUN_COUNT)
.rtcInfo("RTC agent start - agent: %s room: %s", agentName, roomUrl)
.url(roomUrl)
.waitForElementVisible('#input-user-name', 120 * sec)
.pause(300) //wait for page render
.setValue('#input-user-name', agentName.replace(/-/g, ''))
.pause(300)
.click(".MuiButtonBase-root.MuiButton-root")
.pause(5000)
.useXpath()
.waitForElementVisible("//[text()='Join Now']", 120 * sec)
.pause(300)
.click("//[text()='Join Now']")
.rtcProgress("In " + roomUrl)
client
.rtcSetNetwork({
outgoing: {
packetloss: 5,
jitter: 50,
latency: 200,
bitrate: 5000
},
incoming: {
packetloss: 6,
jitter: 50,
latency: 200,
bitrate: 6000
}
});
client
.pause(30 * sec)
.useCss()
.moveTo(null, 110, 10)
.pause(30 * sec)
client
.useXpath()
.waitForElementVisible("//[text()='Disconnect']", 60 * sec)
.pause(300)
.click("//[text()='Disconnect']")
.pause(15 * sec)
→ Running command: moveTo (, 110, 10)
→ Error
-->Error while running .moveTo() protocol action: Unknown element: null
Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: