Update console scripts

This commit is contained in:
Michael Mintz 2022-12-02 02:02:03 -05:00
parent e831d25cea
commit 2bcc27385c
2 changed files with 8 additions and 9 deletions

View File

@ -28,13 +28,12 @@ pytest new_test.py --rec -q -s --url=wikipedia.org
>>>>>>>>>>>>>>>>>> PDB set_trace >>>>>>>>>>>>>>>>>
-> import pdb; pdb.set_trace()
> PATH_TO_YOUR_CURRENT_DIRECTORY/new_test.py(9)
....
.
5 def test_recording(self):
6 if self.recorder_ext and not self.xvfb:
7 # When you are done recording actions,
8 # type "c" and press [ENTER] to continue
6 if self.recorder_ext:
7 # When done recording actions,
8 # type "c", and press [Enter].
9 -> import pdb; pdb.set_trace()
return None
(Pdb+) c

View File

@ -168,11 +168,11 @@ def main():
data.append("from seleniumbase import BaseCase")
data.append("")
data.append("")
data.append("class RecorderTests(BaseCase):")
data.append("class RecorderTest(BaseCase):")
data.append(" def test_recording(self):")
data.append(" if self.recorder_ext and not self.xvfb:")
data.append(" # When you are done recording actions,")
data.append(' # type "c" and press [ENTER] to continue')
data.append(" if self.recorder_ext:")
data.append(" # When done recording actions,")
data.append(' # type "c", and press [Enter].')
data.append(" import pdb; pdb.set_trace()")
data.append("")
file = codecs.open(file_path, "w+", "utf-8")