Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Luciano Renzi
    @luciano-renzi

    get_element_text, get_element_attribute, get_element_value does not print anything in the logs

    Yes, they don't log anything, but you could print the returned value: print(get_element_text('.my-element'))

    They should probably log the values found

    Zeeshan
    @zeeshanyshaikh
    @luciano-renzi print() does not show any value... i tried with basic text print and the examples given in document. None of them were shown in logs
    print("Test comment")
    
    from golem import actions
    print(actions.get_browser().title)
    Luciano Renzi
    @luciano-renzi
    got it, yes, print only outputs to the console and not to the log files. I can add a new action log(message, level='INFO')
    Zeeshan
    @zeeshanyshaikh
    Thanks @luciano-renzi. what will be the ETA for this? shall i raise issue on github?
    Luciano Renzi
    @luciano-renzi
    I already fixed the missing inputs on the gui, I also added the 'log' action. This is going to be out in the next minor version
    Zeeshan
    @zeeshanyshaikh
    Thanks @luciano-renzi
    aloknag
    @aloknag
    Hey guys, I am trying golem out and it looks cool.
    though in my first test case, I am seeing 'Internal Server Error' in gui, if I use xpath to find element.
    from golem import actions description = 'Register a new user to Mercury Tours' ... Skipped... def test(data): browser = actions.get_browser() actions.verify_title_contains('Welcome: Mercury Tours') element = browser.find_element_by_xpath("//a[contains(text(),'REGISTER')]") actions.click(element) ...Skipped...
    Luciano Renzi
    @luciano-renzi

    There's not much I can tell without the full trace but I think the issue is that you are using the original Selenium find method: find_element_by_xpath.

    With Golem you should use browser.find and browser.find_all:

    https://golem-framework.readthedocs.io/en/latest/golem_public_api/webdriver-class.html#find-args-kwargs-small-golem-small

    https://golem-framework.readthedocs.io/en/latest/finding-elements.html#find

    shchokin
    @shchokin

    Hello, guys. I have the following issue. My test stars in Chrome browser with the "Chrome is being controlled by automated test software" message on the top of page
    I try to remove this info-bar. I found solution for python, but I don't know how use this with Golem's syntax.

    chrome_options = webdriver.ChromeOptions()
    chrome_options.add_experimental_option("excludeSwitches", ['enable-automation'])
    driver = webdriver.Chrome(options=chrome_options)

    Could you please help rewrite this code or suggest another solution? Thanks in advance!

    Meghrikyan
    @Meghrikyan
    Hi Artyom, if i am not mistaken, chrome_options are available when you use "remote Selenium grid". Documentation Chapter 3.13 - settings.json
    shchokin
    @shchokin
    I don't use remote Selenium grid in my cases. I tried set chrome options using set_browser_capability("excludeSwitches", ['enable-automation']) as well but it did not help
    Luciano Renzi
    @luciano-renzi
    yeah, currently there aren't a lot of ways to control how the browser starts
    Luciano Renzi
    @luciano-renzi
    sebastian manderline
    @greyjoyrules_twitter
    Is this framework now dead?
    Luciano Renzi
    @luciano-renzi
    @greyjoyrules_twitter not dead, more like peacefully asleep
    Meghrikyan
    @Meghrikyan
    @luciano-renzi Thanks for new version.
    @greyjoyrules_twitter it's not dead at all. I will publisch couple videos about it soon.
    Luciano Renzi
    @luciano-renzi
    @Meghrikyan are you currently using it?
    I'm having more free time now, I will get back to this project. Lots of features still missing
    The last thing I was working on was adding support for more than one test per file
    Meghrikyan
    @Meghrikyan
    Yes, I use it. In my opinion this framework is better than the other ones I tried. I already did two videos, just to help make it popular.
    Luciano Renzi
    @luciano-renzi
    @Meghrikyan I just saw them, I don't speak the language but I appreciate it anyway!
    2 replies
    Meghrikyan
    @Meghrikyan
    Luciano Renzi
    @luciano-renzi
    @Meghrikyan that's great!!
    Sunil Rathore
    @Sunil-Rathore
    @luciano-renzi really thanks for this awesome framework. I like this so much.
    Sunil Rathore
    @Sunil-Rathore
    @luciano-renzi I am thinking is it possible to add recording feature like selenium ide is doing?
    if this recording feature will add on Test page(Setup) then I am sure this framework will become next level😉
    Luciano Renzi
    @luciano-renzi
    @ATTO-DT thanks. That's not a bad idea. Making it compatible with the page object model would be the tricky part. I'll keep it in mind.
    Luciano Renzi
    @luciano-renzi
    breaking change: reports generated in previous versions won't work with the report viewer
    Meghrikyan
    @Meghrikyan
    Recording is easier than we think - ffmpeg can be used. Instead of making golem a heavy machine, it's better to add some kind of "Page object" with ffmpeg.
    Luciano Renzi
    @luciano-renzi
    I thought they meant a test recorder to capture test steps in real time. Adding video recording of the tests is also a good idea
    Meghrikyan
    @Meghrikyan
    What is final decision, shall we add POM page with video recording or it is waste of our time?
    Sunil Rathore
    @Sunil-Rathore
    @luciano-renzi was right my meant to implement test recorder to capture test steps(like selenium-ide) in real time anyway currently am working on this #216 and it's very useful for most of the user to record from selenium ide and play with golem. and also adding video recording of tests on report page also good idea will look into and will implement.
    Luciano Renzi
    @luciano-renzi