<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: MOMO</title>
    <description>The latest articles on DEV Community by MOMO (@momo_6x).</description>
    <link>https://dev.to/momo_6x</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F402506%2F3b90c99e-1474-496e-844c-a9b680e780c6.png</url>
      <title>DEV Community: MOMO</title>
      <link>https://dev.to/momo_6x</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/momo_6x"/>
    <language>en</language>
    <item>
      <title>Answer: How to maximize browser window using puppeteer?</title>
      <dc:creator>MOMO</dc:creator>
      <pubDate>Sat, 06 Jun 2020 19:08:12 +0000</pubDate>
      <link>https://dev.to/momo_6x/answer-how-to-maximize-browser-window-using-puppeteer-jj0</link>
      <guid>https://dev.to/momo_6x/answer-how-to-maximize-browser-window-using-puppeteer-jj0</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fstackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/56543232/how-to-maximize-browser-window-using-puppeteer/60282642#60282642" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: How to maximize browser window using puppeteer?
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Feb 18 '20&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/56543232/how-to-maximize-browser-window-using-puppeteer/60282642#60282642" rel="noopener noreferrer"&gt;
        &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fstackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          48
        &lt;/div&gt;
        &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fstackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;This works fine for me.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;await puppeteer.launch({ 
      headless: false,
      defaultViewport: null,
      args: ['--start-maximized'] 
});
&lt;/code&gt;&lt;/pre&gt;

    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/56543232/how-to-maximize-browser-window-using-puppeteer/60282642#60282642" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: How to avoid being detected as bot on Puppeteer and Phantomjs?</title>
      <dc:creator>MOMO</dc:creator>
      <pubDate>Sat, 06 Jun 2020 18:55:17 +0000</pubDate>
      <link>https://dev.to/momo_6x/answer-how-to-avoid-being-detected-as-bot-on-puppeteer-and-phantomjs-4fkh</link>
      <guid>https://dev.to/momo_6x/answer-how-to-avoid-being-detected-as-bot-on-puppeteer-and-phantomjs-4fkh</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fstackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/51731848/how-to-avoid-being-detected-as-bot-on-puppeteer-and-phantomjs/54361485#54361485" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: How to avoid being detected as bot on Puppeteer and Phantomjs?
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Jan 25 '19&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/51731848/how-to-avoid-being-detected-as-bot-on-puppeteer-and-phantomjs/54361485#54361485" rel="noopener noreferrer"&gt;
        &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fstackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          24
        &lt;/div&gt;
        &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fstackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;Things that can help in general :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Headers should be similar to common browsers, including
&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;User-Agent&lt;/strong&gt; : use a recent one (see &lt;a href="https://developers.whatismybrowser.com/useragents/explore/" rel="noreferrer noopener"&gt;https://developers.whatismybrowser.com/useragents/explore/&lt;/a&gt;), or better, use a random recent one if you make multiple requests (see &lt;a href="https://github.com/skratchdot/random-useragent" rel="noreferrer noopener"&gt;https://github.com/skratchdot/random-useragent&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Accept-Language&lt;/strong&gt; : something like "&lt;em&gt;en,en-US;q=0,5&lt;/em&gt;" (adapt for your…&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/51731848/how-to-avoid-being-detected-as-bot-on-puppeteer-and-phantomjs/54361485#54361485" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>How I can Run Multiple Node js Files ?</title>
      <dc:creator>MOMO</dc:creator>
      <pubDate>Sat, 06 Jun 2020 14:26:42 +0000</pubDate>
      <link>https://dev.to/momo_6x/run-multiple-node-js-files-4ei5</link>
      <guid>https://dev.to/momo_6x/run-multiple-node-js-files-4ei5</guid>
      <description>&lt;p&gt;Hi, I am new to node.js I have question about how to run mulitple files at once.&lt;br&gt;
let's say I have &lt;code&gt;scripts_1.js&lt;/code&gt; and &lt;code&gt;scripts_2.js&lt;/code&gt;&lt;br&gt;
How can I run the both at the same time.&lt;br&gt;
I know I can do this &lt;code&gt;node scripts_1.js &amp;amp;&amp;amp; scripts_2.js&lt;/code&gt; but the problem is that I need to wait for &lt;code&gt;scripts_1&lt;/code&gt; to finish so &lt;code&gt;scripts_2.js&lt;/code&gt; can run.&lt;/p&gt;

&lt;p&gt;I tried bash scripts&lt;br&gt;
&lt;code&gt;start.sh&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;start node "scripts_1.js"
start node "scripts_2.js"
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;but I don't like it I need a better way.&lt;br&gt;
any one can help.&lt;br&gt;
Thanks in advance&lt;/p&gt;

</description>
      <category>node</category>
      <category>discuss</category>
      <category>beginners</category>
      <category>help</category>
    </item>
    <item>
      <title>Answer: Puppeteer - scroll down until you can't anymore</title>
      <dc:creator>MOMO</dc:creator>
      <pubDate>Sat, 06 Jun 2020 13:49:03 +0000</pubDate>
      <link>https://dev.to/momo_6x/answer-puppeteer-scroll-down-until-you-can-t-anymore-2b0a</link>
      <guid>https://dev.to/momo_6x/answer-puppeteer-scroll-down-until-you-can-t-anymore-2b0a</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--d6fSuj3N--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackoverflow-logo-e7205b186f9c84b1d4e8eb405ef6008a5774db316bd7d257421920b0f954810f.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/51529332/puppeteer-scroll-down-until-you-cant-anymore/53527984#53527984" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  Puppeteer - scroll down until you can't anymore
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Nov 28 '18&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/51529332/puppeteer-scroll-down-until-you-cant-anymore/53527984#53527984" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xjukSftY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-up-73f60a9ccafdb2f40eec3701f62d2fd7121e02a581a2850e671a7e415eb49071.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          65
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4ZRntoBk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-down-80fee73e4bc433405a0c0f3b9b88354ecccbdf53f131f8cd998aa30ed5223407.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;Give this a shot:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;const puppeteer = require('puppeteer');

(async () =&amp;gt; {
    const browser = await puppeteer.launch({
        headless: false
    });
    const page = await browser.newPage();
    await page.goto('https://www.yoursite.com');
    await page.setViewport({
        width: 1200,
        height: 800
    });

    await autoScroll(page);

    await page.screenshot({
        path: 'yoursite.png',
        fullPage: true
    });

    await browser.close();
})();

async function autoScroll(page){
    await&lt;/code&gt;&lt;/pre&gt;…
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/51529332/puppeteer-scroll-down-until-you-cant-anymore/53527984#53527984" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: Loading .crx into remote chrome Selenium python</title>
      <dc:creator>MOMO</dc:creator>
      <pubDate>Fri, 05 Jun 2020 21:57:48 +0000</pubDate>
      <link>https://dev.to/momo_6x/answer-loading-crx-into-remote-chrome-selenium-python-4gb4</link>
      <guid>https://dev.to/momo_6x/answer-loading-crx-into-remote-chrome-selenium-python-4gb4</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--d6fSuj3N--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackoverflow-logo-e7205b186f9c84b1d4e8eb405ef6008a5774db316bd7d257421920b0f954810f.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/37137951/loading-crx-into-remote-chrome-selenium-python/37142291#37142291" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  Loading .crx into remote chrome Selenium python
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;May 10 '16&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/37137951/loading-crx-into-remote-chrome-selenium-python/37142291#37142291" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xjukSftY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-up-73f60a9ccafdb2f40eec3701f62d2fd7121e02a581a2850e671a7e415eb49071.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          2
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4ZRntoBk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-down-80fee73e4bc433405a0c0f3b9b88354ecccbdf53f131f8cd998aa30ed5223407.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;Here is an example to add an extension with Chrome with a remote server:&lt;/p&gt;
&lt;pre class="lang-py prettyprint-override"&gt;&lt;code&gt;from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_extension(r'C:\Downloads\Adblock-Plus_v1.11.crx')

capabilities = options.to_capabilities()
capabilities.update({'browser_version': '50.0', 'os': 'Windows', 'os_version': '10', 'resolution': '1366x768'})

driver = webdriver.Remote("http://127.0.0.1:4444/wd/hub", desired_capabilities=capabilities)
driver.get('http://stackoverflow.com/')
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Note that it is preferable to set the &lt;code&gt;Log level&lt;/code&gt; to &lt;code&gt;WARNING&lt;/code&gt;…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/37137951/loading-crx-into-remote-chrome-selenium-python/37142291#37142291" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: How do I pause my shell script for a second before continuing?</title>
      <dc:creator>MOMO</dc:creator>
      <pubDate>Fri, 05 Jun 2020 16:00:20 +0000</pubDate>
      <link>https://dev.to/momo_6x/answer-how-do-i-pause-my-shell-script-for-a-second-before-continuing-55a3</link>
      <guid>https://dev.to/momo_6x/answer-how-do-i-pause-my-shell-script-for-a-second-before-continuing-55a3</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fstackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/21620406/how-do-i-pause-my-shell-script-for-a-second-before-continuing/21621163#21621163" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: How do I pause my shell script for a second before continuing?
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Feb  7 '14&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/21620406/how-do-i-pause-my-shell-script-for-a-second-before-continuing/21621163#21621163" rel="noopener noreferrer"&gt;
        &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fstackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          2055
        &lt;/div&gt;
        &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fstackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;Use the &lt;code&gt;sleep&lt;/code&gt; command.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sleep .5 # Waits 0.5 second.
sleep 5  # Waits 5 seconds.
sleep 5s # Waits 5 seconds.
sleep 5m # Waits 5 minutes.
sleep 5h # Waits 5 hours.
sleep 5d # Waits 5 days.
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;One can also employ decimals when specifying a time…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/21620406/how-do-i-pause-my-shell-script-for-a-second-before-continuing/21621163#21621163" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: Run python SCRIPT on multiple browsers at the same time using selenium</title>
      <dc:creator>MOMO</dc:creator>
      <pubDate>Fri, 05 Jun 2020 15:04:29 +0000</pubDate>
      <link>https://dev.to/momo_6x/answer-run-python-script-on-multiple-browsers-at-the-same-time-using-selenium-3be9</link>
      <guid>https://dev.to/momo_6x/answer-run-python-script-on-multiple-browsers-at-the-same-time-using-selenium-3be9</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--d6fSuj3N--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackoverflow-logo-e7205b186f9c84b1d4e8eb405ef6008a5774db316bd7d257421920b0f954810f.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/43626313/run-python-script-on-multiple-browsers-at-the-same-time-using-selenium/43626516#43626516" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  Run python SCRIPT on multiple browsers at the same time using selenium
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Apr 26 '17&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/43626313/run-python-script-on-multiple-browsers-at-the-same-time-using-selenium/43626516#43626516" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xjukSftY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-up-73f60a9ccafdb2f40eec3701f62d2fd7121e02a581a2850e671a7e415eb49071.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          2
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4ZRntoBk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-down-80fee73e4bc433405a0c0f3b9b88354ecccbdf53f131f8cd998aa30ed5223407.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;You could create multiple instances of the webdriver. You can then manipulate each individually. For example,&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;from selenium import webdriver
driver1 = webdriver.Chrome()
driver2 = webdriver.Chrome()
driver1.get("http://google.com")
driver2.get("http://yahoo.com")
&lt;/code&gt;&lt;/pre&gt;

    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/43626313/run-python-script-on-multiple-browsers-at-the-same-time-using-selenium/43626516#43626516" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: In a Bash script, how can I exit the entire script if a certain condition occurs?</title>
      <dc:creator>MOMO</dc:creator>
      <pubDate>Fri, 05 Jun 2020 15:04:00 +0000</pubDate>
      <link>https://dev.to/momo_6x/answer-in-a-bash-script-how-can-i-exit-the-entire-script-if-a-certain-condition-occurs-291i</link>
      <guid>https://dev.to/momo_6x/answer-in-a-bash-script-how-can-i-exit-the-entire-script-if-a-certain-condition-occurs-291i</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--d6fSuj3N--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackoverflow-logo-e7205b186f9c84b1d4e8eb405ef6008a5774db316bd7d257421920b0f954810f.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/1378274/in-a-bash-script-how-can-i-exit-the-entire-script-if-a-certain-condition-occurs/1378284#1378284" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  In a Bash script, how can I exit the entire script if a certain condition occurs?
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Sep  4 '09&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/1378274/in-a-bash-script-how-can-i-exit-the-entire-script-if-a-certain-condition-occurs/1378284#1378284" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xjukSftY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-up-73f60a9ccafdb2f40eec3701f62d2fd7121e02a581a2850e671a7e415eb49071.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          810
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4ZRntoBk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-down-80fee73e4bc433405a0c0f3b9b88354ecccbdf53f131f8cd998aa30ed5223407.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;Try this statement:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;exit 1
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Replace &lt;code&gt;1&lt;/code&gt; with appropriate error codes. See also &lt;a href="http://www.tldp.org/LDP/abs/html/exitcodes.html" rel="noreferrer"&gt;Exit Codes With Special Meanings&lt;/a&gt;.&lt;/p&gt;

    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/1378274/in-a-bash-script-how-can-i-exit-the-entire-script-if-a-certain-condition-occurs/1378284#1378284" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: How do I put a variable inside a string?</title>
      <dc:creator>MOMO</dc:creator>
      <pubDate>Fri, 05 Jun 2020 13:32:12 +0000</pubDate>
      <link>https://dev.to/momo_6x/answer-how-do-i-put-a-variable-inside-a-string-1d7b</link>
      <guid>https://dev.to/momo_6x/answer-how-do-i-put-a-variable-inside-a-string-1d7b</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--d6fSuj3N--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackoverflow-logo-e7205b186f9c84b1d4e8eb405ef6008a5774db316bd7d257421920b0f954810f.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/2960772/how-do-i-put-a-variable-inside-a-string/2962966#2962966" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  How do I put a variable inside a string?
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Jun  3 '10&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/2960772/how-do-i-put-a-variable-inside-a-string/2962966#2962966" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xjukSftY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-up-73f60a9ccafdb2f40eec3701f62d2fd7121e02a581a2850e671a7e415eb49071.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          483
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4ZRntoBk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-down-80fee73e4bc433405a0c0f3b9b88354ecccbdf53f131f8cd998aa30ed5223407.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;Oh, the many, many ways...&lt;/p&gt;
&lt;p&gt;String concatenation:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;plot.savefig('hanning' + str(num) + '.pdf')
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Conversion Specifier:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;plot.savefig('hanning%s.pdf' % num)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Using local variable names:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;plot.savefig('hanning%(num)s.pdf' % locals()) # Neat trick
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Using &lt;a href="https://docs.python.org/3/library/stdtypes.html#str.format" rel="noreferrer"&gt;&lt;code&gt;str.format()&lt;/code&gt;&lt;/a&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;plot.savefig('hanning{0}.pdf'.format(num)) # Note: This is the new preferred way
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Using f-strings:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;plot.savefig(f'hanning{num}.pdf') # added in Python 3.6
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Using &lt;a href="https://docs.python.org/3/library/string.html#string.Template" rel="noreferrer"&gt;&lt;code&gt;string.Template&lt;/code&gt;&lt;/a&gt;:&lt;/p&gt;…
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/2960772/how-do-i-put-a-variable-inside-a-string/2962966#2962966" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: selenium count elements of xpath</title>
      <dc:creator>MOMO</dc:creator>
      <pubDate>Fri, 05 Jun 2020 10:34:18 +0000</pubDate>
      <link>https://dev.to/momo_6x/answer-selenium-count-elements-of-xpath-59do</link>
      <guid>https://dev.to/momo_6x/answer-selenium-count-elements-of-xpath-59do</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--d6fSuj3N--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackoverflow-logo-e7205b186f9c84b1d4e8eb405ef6008a5774db316bd7d257421920b0f954810f.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/18343729/selenium-count-elements-of-xpath/46192447#46192447" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  selenium count elements of xpath
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Sep 13 '17&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/18343729/selenium-count-elements-of-xpath/46192447#46192447" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xjukSftY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-up-73f60a9ccafdb2f40eec3701f62d2fd7121e02a581a2850e671a7e415eb49071.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          2
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4ZRntoBk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-down-80fee73e4bc433405a0c0f3b9b88354ecccbdf53f131f8cd998aa30ed5223407.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;Use find_elements_by_xpath to get number of relevant elements&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;count = len(driver.find_elements_by_xpath(xpath))
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Then click on the last element:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;elem = driver.find_element_by_xpath(xpath[count])
elem.click()
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Notice: the find_elements_by_xpath is plural in first code snippet&lt;/p&gt;

    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/18343729/selenium-count-elements-of-xpath/46192447#46192447" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Answer: XQuery negate regex</title>
      <dc:creator>MOMO</dc:creator>
      <pubDate>Fri, 05 Jun 2020 10:01:39 +0000</pubDate>
      <link>https://dev.to/momo_6x/answer-xquery-negate-regex-20pa</link>
      <guid>https://dev.to/momo_6x/answer-xquery-negate-regex-20pa</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--d6fSuj3N--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackoverflow-logo-e7205b186f9c84b1d4e8eb405ef6008a5774db316bd7d257421920b0f954810f.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/32993708/xquery-negate-regex/33314246#33314246" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  XQuery negate regex
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Oct 24 '15&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/32993708/xquery-negate-regex/33314246#33314246" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xjukSftY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-up-73f60a9ccafdb2f40eec3701f62d2fd7121e02a581a2850e671a7e415eb49071.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          2
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4ZRntoBk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-down-80fee73e4bc433405a0c0f3b9b88354ecccbdf53f131f8cd998aa30ed5223407.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;&lt;strong&gt;Just use this pure XPath 2.0 expression&lt;/strong&gt; (XPath 2.0 is a proper subset of XQuery):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;("2a2", "32", "1234", "12", "32a3", "12345", "")
                      [not(matches(., "^[0-9]{4}$"))]
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;When this expression is evaluated&lt;/strong&gt; (in XQuery, XSLT 2+ or any standalone XPath/XQuery interpreter tool), &lt;strong&gt;the wanted, correct result is produced&lt;/strong&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;2a2 32 12 32a3&lt;/code&gt;&lt;/pre&gt;…
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/32993708/xquery-negate-regex/33314246#33314246" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>XQuery negate regex</title>
      <dc:creator>MOMO</dc:creator>
      <pubDate>Fri, 05 Jun 2020 10:01:03 +0000</pubDate>
      <link>https://dev.to/momo_6x/xquery-negate-regex-3f5i</link>
      <guid>https://dev.to/momo_6x/xquery-negate-regex-3f5i</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--d6fSuj3N--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackoverflow-logo-e7205b186f9c84b1d4e8eb405ef6008a5774db316bd7d257421920b0f954810f.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/32993708/xquery-negate-regex" rel="noopener noreferrer"&gt;
               XQuery negate regex
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Oct  7 '15&lt;/span&gt;
            &lt;span&gt;Comments: 6&lt;/span&gt;
            &lt;span&gt;Answers: 2&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/32993708/xquery-negate-regex" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xjukSftY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-up-73f60a9ccafdb2f40eec3701f62d2fd7121e02a581a2850e671a7e415eb49071.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          3
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4ZRntoBk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-down-80fee73e4bc433405a0c0f3b9b88354ecccbdf53f131f8cd998aa30ed5223407.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;Im searching for a way to negate a regular expression in xquery
Using Oracle with the XMLQuery function.&lt;/p&gt;

&lt;p&gt;Ill give an example first:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;XMLQuery(
    'for $number in ("2a2", "32", "1234", "12", "32a3", "")
    where ora:matches($number,"^[0-9]{4}$")

    return xs:integer($number)'
    passing xml RETURNING CONTENT
    )
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;this works perfect except one thing. I want…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/32993708/xquery-negate-regex" rel="noopener noreferrer"&gt;Open Full Question&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
  </channel>
</rss>
