WebWhatsappBot
WebWhatsappBot copied to clipboard
Some updates may be useful
- Method
GetQRImageRAWis not working. I'm trying to change todriver.FindElement(By.XPath("//*[@id=\"app\"]/div/div/div[2]/div[1]/div[2]/div/img"));and it's now working - To check if the phone is connected or successfully scanned I'm using this code (changing the old one)
try
{
if (driver.FindElements(By.XPath("//*[@id=\"app\"]/div/div/div[2]/div[1]/div[3]/label/input")).Count > 0)
return false;
if (driver.FindElements(By.ClassName("icon-alert-phone")).Count > 0)
return false;
return true;
}
catch (Exception ex)
{
return true;
}
I am in the process of optimizing some methods