New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After switching chanel stuck at finding "selectBtn" because drop-down menu lack, #118
Conversation
…ick on create Button 2) add video), then drop-down shows and algo continue.
…ick on create Button 2) add video), then drop-down shows and algo continue.
I don't think this code will work, it has many issues. Please test it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to add await
if((await page.waitForXPath(createBtnXPath))){
const createBtn = await page.$x(createBtnXPath);
await createBtn[0].click();
}
if((await page.waitForXPath(addVideoBtnXPath))){
const addVideoBtn =await page.$x(addVideoBtnXPath);
await addVideoBtn[0].click();
}
after adding the requested changes, please test it.
i'm use vanilla js version, but i add yield instead of await |
it work for me, and when i use other account i don't need this, because drop-down menu exist. and your code work fine. |
I will merge this PR, after someone test it |
Thanks for this PR |
This change is