Mobile XPath Support and Agoda 90-Day Scraper#36
Conversation
- Implemented XPath support in `MobileDevice` using `lxml`. - Added `wait_for_element` for better stability in mobile automation. - Introduced `query` parameter for 'smart search' (matches text, content-desc, or resource-id). - Improved `MobileElement` bounds parsing with regex for robustness. - Added `examples/agoda_90day_scraper.py` demonstrating 90-day price scraping. - Added unit tests for new mobile finding capabilities. Co-authored-by: ToufiqQureshi <139612256+ToufiqQureshi@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Restored backward compatibility for `MobileDevice.dump_hierarchy()`. - Added `dump_raw_hierarchy()` for raw XML access. - Implemented `get_clickable_elements()` for UI inspection. - Improved `MobileElement.type()` with `clear` logic using ADB keycodes. - Refined Agoda 90-day scraper example with precise XPath indexing. - Verified all features with comprehensive unit tests. Co-authored-by: ToufiqQureshi <139612256+ToufiqQureshi@users.noreply.github.com>
Bhai, Agoda jaise apps ke liye maine
chuscraperko upgrade kar diya hai. Ab aap bina ID ke bhi XPath aur "Smart Search" se elements dhoond sakte hain. Maine ek poora 90-day scraper script bhiexamples/mein dal diya hai jo prices nikal ke CSV mein save karega.Changes:
device.find_element(xpath="//node[contains(@text, 'AED')]")use kar sakte hain.device.find_element(query="Search")likhne se wo apne aap text aur IDs check kar lega.device.wait_for_element()add kiya hai.examples/agoda_90day_scraper.pymein pura logic hai.Ab aap Agoda app ko easily scrape kar payenge!
PR created automatically by Jules for task 10757030110318602849 started by @ToufiqQureshi