--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
I am also using the same setup Linxu+Jenkins+RF+XVFB +Firefox.. but it is not true headless testing i think . it actually opens the browser on Linux
In my case, I have 500 test cases to execute, these are data driven/workflow based( one test case generate output for other) it is taking lot time to complete the run.. the main reason could be it is opening/loading browser and navigate pages and look up for web elements
Is there a better way to improve performance by running true headless mode (don’t open the browser)? If we see load runner ( HP tool ) it actually captures the entire URL and feeds the data in place holders instead opening Brower and navigating..
Appreciate your inputs.
--
You received this message because you are subscribed to a topic in the Google Groups "robotframework-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/robotframework-users/3FPSc9iEIdY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
To post to this group, send email to robotframe...@googlegroups.com.
*** Settings ***
Documentation This example demonstrates how to use current library
Library Selenium2Library
Library XvfbRobot
*** Variables ***
*** Test Cases ***
Create Headless Browser
Start Virtual Display 1920 1080
Open Browser http://google.com
Set Window Size 1920 1080
${title}= Get Title
Should Be Equal Google {title}
[Teardown] Close Browserroot@hyi01lr0bsaehost92:/var/robot-tests# pybot headless.robot ============================================================================== Headless :: This example demonstrates how to use current library ============================================================================== [ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: No browser is open Create Headless Browser | FAIL | KeyError: 'value' ------------------------------------------------------------------------------ Headless :: This example demonstrates how to use current library | FAIL | 1 critical test, 0 passed, 1 failed 1 test total, 0 passed, 1 failed ============================================================================== Output: /var/robot-tests/output.xml Log: /var/robot-tests/log.html Report: /var/robot-tests/report.html
Madhu.
To unsubscribe from this group and all its topics, send an email to robotframework-users+unsubscrib...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
#!/usr/bin/env python
from pyvirtualdisplay import Display
from selenium import webdriver
display = Display(visible=0, size=(800, 600))
display.start()
browser = webdriver.Firefox()
browser.get('http://www.google.com')
print browser.title
browser.quit()
display.stop()====================================
Error after running python script
====================================
root@hyi01lr0bsaehost92:/var/robot-tests# python seleniumheadless.py
Traceback (most recent call last):
File "seleniumheadless.py", line 13, in <module>
browser = webdriver.Firefox()
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py", line 155, in __init__
keep_alive=True)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 92, in __init__
self.start_session(desired_capabilities, browser_profile)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 183, in start_session
self.capabilities = response['value']
KeyError: 'value'To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsubscrib...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "robotframework-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/robotframework-users/3FPSc9iEIdY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to robotframework-users+unsub...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to robotframework-users+unsubscrib...@googlegroups.com.
*** Settings ***
Documentation This example demonstrates how to use current library
Library Selenium2Library
Library XvfbRobot
*** Variables ***
*** Test cases ***
Open Browser with Chrome options for configuring data source
${options} Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver
Call Method ${options} add_argument --start-maximized
Call Method ${options} add_argument --headless
Call Method ${options} add_argument --disable-gpu
${preferences} = Create Dictionary setAcceptUntrustedCertificates=True setAssumeUntrustedCertificateIssuer=True
Create WebDriver Chrome chrome_options=${options} desired_capabilities=${preferences}
Go To https://www.google.com
${title}= Get Title
Log to console ${title}
root@hyi01lr0bsaehost92:/var/robot-tests# pybot headless.robot
==============================================================================
Headless :: This example demonstrates how to use current library
==============================================================================
[ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: No browser is open
Open Browser with Chrome options for configuring data source | FAIL |
WebDriverException: Message: unknown error: unrecognized Chrome version: HeadlessChrome/59.0.3071.86
(Driver info: chromedriver=2.26.436382 (70eb799287ce4c2208441fc057053a5b07ceabac),platform=Linux 3.13.0-119-generic x86_64)
------------------------------------------------------------------------------
Headless :: This example demonstrates how to use current library | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==============================================================================
Output: /var/robot-tests/output.xml
Log: /var/robot-tests/log.html
Report: /var/robot-tests/report.htmlTo unsubscribe from this group and all its topics, send an email to robotframework-users+unsub...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to robotframework-users+unsubscrib...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to robotframework-users+unsub...@googlegroups.com.
Madhu.
To unsubscribe from this group and all its topics, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "robotframework-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/robotframework-users/3FPSc9iEIdY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "robotframework-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/robotframework-users/3FPSc9iEIdY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "robotframework-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/robotframework-users/3FPSc9iEIdY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to robotframework-users+unsub...@googlegroups.com.
Madhu.
To unsubscribe from this group and all its topics, send an email to robotframework-users+unsubscrib...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsubscrib...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "robotframework-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/robotframework-users/3FPSc9iEIdY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to robotframework-users+unsubscrib...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "robotframework-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/robotframework-users/3FPSc9iEIdY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to robotframework-users+unsubscrib...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "robotframework-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/robotframework-users/3FPSc9iEIdY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to robotframework-users+unsubscrib...@googlegroups.com.
Thanks Kevin.It is helpful.
Madhu.
To unsubscribe from this group and all its topics, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "robotframework-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/robotframework-users/3FPSc9iEIdY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "robotframework-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/robotframework-users/3FPSc9iEIdY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "robotframework-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/robotframework-users/3FPSc9iEIdY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to robotframework-users+unsub...@googlegroups.com.
*** Settings ***Documentation Check WebUILibrary Selenium2LibraryTest Timeout 2 minutesTest Setup Test_setupTest Teardown Test_teardown
*** Test Cases ***Test Chrome Headless Run [Tags] webui Go To http://google.com Capture Page Screenshot Input Text id=lst-ib It's alive! Capture Page Screenshot Submit Form id=tsf Capture Page Screenshot
*** Keywords ***Test_setup ${c_opts} = Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver Call Method ${c_opts} add_argument headless Call Method ${c_opts} add_argument disable-gpu Call Method ${c_opts} add_argument no-sandbox Call Method ${c_opts} add_argument window-size\=1024,768 Create Webdriver Chrome crm_alias chrome_options=${c_opts}
Test_teardown Close All Browserspip install robotframework-xvfb
*** Settings ***
Documentation This example demonstrates how to use current library
Library Selenium2Library
Library XvfbRobot
*** Test Cases ***
Create Headless Browser
Start Virtual Display 1920 1080
Open Browser http://google.com
Set Window Size 1920 1080
${title}= Get Title
Should Be Equal Google ${title}
[Teardown] Close Browser
Is it able to avrivate the 2nd and 3rd monitors?
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/robotframework-users/b5b91bc6-1c70-42d8-be9e-7a34eeb161ca%40googlegroups.com.
May be the language issue.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To view this discussion on the web visit https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_msgid_robotframework-2Dusers_d456b239-2D852e-2D4e9a-2Da3dd-2D563111c6ed62-2540googlegroups.com&d=DwIBaQ&c=ozypvYmGz3BuiwUbUD4AMyNtUdzv9H0FFph-oZtZhR0&r=wdqfECMXnJ2QJcg8wiq_zGoK-YFsXvdeo7mcOIlkW7upSpsiWjffeeg95B7UOcuJ&m=-5ieZK9FFBRCc6bIYKkdTZKoilxoU1-soQFyxVTM_dY&s=Px1hQDNOALUyIWCQfvBXSAypaqwRCnB3ouUbewbL8JY&e= .