Question: How do I scroll through a modal window that is created using Bootstrap's modal class? Generally we use the JavascriptExecutor and use the window.scroll/scrollBy method. But when I tried the same when a modal is popped up with long content, the scroll is happening in the actual webpage which is not focused. How do I scroll through content in a modal popup that has long content? 

Example - Modal popup here: <https://v4-alpha.getbootstrap.com/components/modal/#scrolling-long-content>

Answer: 
Thanks hpaulj, your solution really helped me and I found one more solution for this problem. Hope it helps someone else facing the same issue.

```
import unittest
import argparse
import sys

class Testclass(unittest.TestCase):

    @classmethod
    def setUpClass(cls):
        print "Hello Class"

    def test_addnum(self):
        print "Execute the test case"
        #parser = parse_args(['-i'])
        print 'simple_value     =', args.inputfile

if __name__ == '__main__':
    parser = argparse.ArgumentParser()
    parser.add_argument('-i', help='input file', dest='inputfile')
    parser.add_argument('unittest_args', nargs='*')
    args = parser.parse_args()
    sys.argv[1:] = args.unittest_args
    unittest.main()

```

Now executing the script with option `-i` as `python testing.py -i somefile.txt` gives result as 

```
Hello Class
Execute the test case
simple_value     = somefile.txt
.
----------------------------------------------------------------------
Ran 1 test in 0.000s

OK

```
Your code is setting up your argument parser using 

```
argparse.ArgumentParser()
parser.add_argument('-i', help='input file', dest='inputfile')

```

in a method of your test class. But I see no indication that the code is actually calling the method. 

So at the time you start the program, the parser does not yet exist, because the method `TestClass.parse_args()` hasn't been called yet. 

Move the creation of the parser and specification of its parameters out of the class so that the code calls it when the program starts.