python - Read javascript code in selenium without opening browser -
I am working with the Selenium API for webcropping on JavaScript pages.
Is there a way
Is this possible?
-
A headless browser , for example:
& gt; & gt; & gt; Selenium Import from WebDriver> gt; & gt; Driver = webdriver.PhantomJS ( ) & Gt; & gt; Driver.get ('http://stackoverflow.com')>> Driver.title u'stack overflow ' -
virtual display with the help of examples: >
-
-
Remote selenium server , either with the self Setting up your nodes, or for example, or:
> gt; & gt; Selenium Imports by WebDriver> gt; & gt; & gt; Selenium.vb.dridver.com Desire to import from fixed_fifths>>>>> <> desired_cap = {'OS': 'windows', 'OS_version': 'XP', 'Browser': 'IE' , 'Browser-version': '7.0'}> gt>> Driver = webdriver.Remote (command_executor = 'http: // username: key@hub.browserstack.com: 80 / wd / hub' , Desired_cabilites = desired_app) & gt; & Gt; & Gt; & Gt; & Gt; & Gt; Driver.get ('http://stackoverflow.com') & gt; & Gt; & Gt; Driver.title u'Stack Overflow '
Comments
Post a Comment