Skip to content

Tag: javascript

login into gmail fails for unknown reason

I am trying to login into my gmail with puppeteer to lower the risk of recaptcha here is my code but i always end up with this message I even tried to just open the login window with puppeteer and fill the login form manually myself, but even that failed. Am I missing something ? When I look into console

New line string from javascript

I cant do new line from javascript, I tried to do that with n, but nothing. Answer Apparently you are pretty new in javascript. You should use <br> instead. n new line for console outputs. Also you should use innerHTML instead of textContent. With textContent Console example:

How to sort list by Persian alphabet?

How can I read testArrray in ul li and sort this list? lis.sort(function(a,b)) has English/Arabic/and alphabet support, not Persian alphabet support. Help me please. Thank you Answer String#localeCompare is supposed to be locale-aware and compare strings appropriately, so: Live Example: You may need to pass s…