Skip to content

Instantly share code, notes, and snippets.

View Ebrahim-Mostafa's full-sized avatar

Ebahim Mostafa Ebrahim-Mostafa

View GitHub Profile
# Clone the repo
git clone https://github.com/imartinez/privateGPT
cd privateGPT
# Install Python 3.11
pyenv install 3.11
pyenv local 3.11
# Install dependencies
poetry install --with ui,local

Show RobotFramework report on Jenkins.

Issue: "Opening Robot Framework log failed"

  • Verify that you have JavaScript enabled in your browser.
  • Make sure you are using a modern enough browser. Firefox 3.5, IE 8, or equivalent is required, newer browsers are recommended.
  • Check are there messages in your browser's JavaScript error log. Please report the problem if you suspect you have encountered a bug.

Explanation: Due to Content Security Policy (https://content-security-policy.com/).

@Ebrahim-Mostafa
Ebrahim-Mostafa / swipe.rb
Created June 2, 2020 22:04 — forked from Alona-T/swipe.rb
Swipe methods that can be used regardless mobile device model and screen size. Using element's coordinates in the method helps to archive it
#swipe to top
def swipe_to_top(element, duration)
elem = element
x = elem.location.x
y = elem.location.y
Appium::TouchAction.swipe(start_x: x, start_y: y, duration: duration)
end
#when you need to just horizontally swipe carousel of elements or similar (when 2 elements are present)
def swipe_horizontally(element_s, element_e, duration)