Michael Mintz

Results 132 comments of Michael Mintz

You'll have to set ``self.driver`` to be the driver of the Electron App. The Recorder saves actions to the main browser's ``sessionStorage``. That's the driver seen by ``self.driver``. At the...

Through the Chrome extension: https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/extensions/recorder.zip

The reading of sessionStorage is done in “def __get_recorded_actions_on_active_tab” in base_case. https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/fixtures/base_case.py

> Do you know how to manually invoke the recorder when switching pages in my electron application? ``self.activate_recorder()`` > Can you tell me what is the function that detects whether...

@chenqinggang001 Nice catch. I'll update path-joining to use ``os.path.join()``.

Hi @anilreddy, Your last line, ``etcs[i+1].find_element('preceding::tr[6]/td[7]/span/span').click()`` is failing because you switched to using a non-SeleniumBase / raw-selenium method. ``self.find_element(selector)`` is a SeleniumBase call. ``element.find_element(by, selector)`` is a raw Selenium call....

Also, SeleniumBase autodetects selector types (there's a detectable difference between css selectors and xpath selectors). Raw selenium methods do not have this auto-detection ability.

You'll get ``StaleElementReferenceException`` if one of the clicks you've chained together navigates the browser to a new page. You shouldn't have to use ``element.find_element()`` or ``element.click()``, which are raw Selenium...

That can be done without calling ``element.find_element()``. Eg: ```python text1 = self.get_text(xpath1) text2 = self.get_text(xpath2) if int(text2) - int(text1) >= 12: self.click(xpath2 + ' preceding::tr[6]/td[7]/span/span') ``` Add in the loop...

On a regular web application being recorded, there is a red border indicating that the recording is active. Pressing ESC removes the border, indicating that the recording has stopped. The...